PATCH /api/public/v1/policies/{public_id}/title beta
The owner's name for the AIP: one line, at most 120 characters once trimmed. An empty title clears it, and the AIP is named by its generated title or its statement again (display_title). No version is minted and statement never changes. More than one line, or more than 120 characters, answers 422 VALIDATION_ERROR.
curl --fail-with-body -X PATCH ' https://app.openlatch.ai/api/public/v1/policies/<policy_public_id>/title ' \
-H " Authorization: Bearer $OPENLATCH_API_KEY " \
-H ' Content-Type: application/json ' \
-d ' {"title":"Production safety guardrails"} '
body = ' {"title":"Production safety guardrails"} '
request = urllib.request. Request (
' https://app.openlatch.ai/api/public/v1/policies/<policy_public_id>/title ' ,
' Authorization ' : ' Bearer ' + os.environ [ ' OPENLATCH_API_KEY ' ] ,
' Content-Type ' : ' application/json ' ,
with urllib.request. urlopen ( request ) as response:
text = response. read (). decode ()
print ( json. dumps ( json. loads ( text ) , indent = 2 ) if text else response.status )
curl -sS --fail-with-body -X PATCH ' https://app.openlatch.ai/api/public/v1/policies/<policy_public_id>/title ' \
-H " Authorization: Bearer $OPENLATCH_API_KEY " \
-H ' Content-Type: application/json ' \
-d ' {"title":"Production safety guardrails"} ' | jq .
Authorization = " Bearer $env:OPENLATCH_API_KEY "
$body = ' {"title":"Production safety guardrails"} '
Invoke-RestMethod - Method PATCH - Uri ' https://app.openlatch.ai/api/public/v1/policies/<policy_public_id>/title ' - Headers $headers - ContentType ' application/json; charset=utf-8 ' - Body $body | ConvertTo-Json - Depth 20
Role in the organization This endpoint ownerAllowed adminAllowed editorAllowed viewerNot allowed
A key carries the role its owner holds in the organization. See Authentication .
API key scope: policies:write
Parameter Type Description public_idstring Required.
Parameter Type Description Idempotency-Keystring or null Optional. Makes the request safe to retry: the same key and the same request, within 24 hours, returns the stored response with Idempotent-Replayed: true and runs once.
Field Type Description titlestring Required. One line, at most 120 characters once trimmed; an empty string clears the owner's name.
Field Type Description dataobject Required. data.display_titlestring Required. data.generated_titlestring or null data.public_idstring Required. data.titlestring or null
"display_title" : " string " ,
"generated_title" : " string " ,
"public_id" : " 3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10 " ,