PATCH /api/public/v1/policies/{public_id}/ask-settings beta
ask_mode_override: platform | agent | both, or null to follow the zone. ask_behaviour_override: pass_and_review | hold_until_validated, or null to follow the zone. Each wins over every zone in the chain and applies to every intent policy of the AIP; a field that is not sent is left as it is. 409 INHERITED_HERE from a zone that inherits the policy, 409 NOT_RATIFIED for a draft or retired one.
curl --fail-with-body -X PATCH ' https://app.openlatch.ai/api/public/v1/policies/<policy_public_id>/ask-settings ' \
-H " Authorization: Bearer $OPENLATCH_API_KEY " \
-H ' Content-Type: application/json ' \
-d ' {"ask_behaviour_override":"pass_and_review"} '
body = ' {"ask_behaviour_override":"pass_and_review"} '
request = urllib.request. Request (
' https://app.openlatch.ai/api/public/v1/policies/<policy_public_id>/ask-settings ' ,
' 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>/ask-settings ' \
-H " Authorization: Bearer $OPENLATCH_API_KEY " \
-H ' Content-Type: application/json ' \
-d ' {"ask_behaviour_override":"pass_and_review"} ' | jq .
Authorization = " Bearer $env:OPENLATCH_API_KEY "
$body = ' {"ask_behaviour_override":"pass_and_review"} '
Invoke-RestMethod - Method PATCH - Uri ' https://app.openlatch.ai/api/public/v1/policies/<policy_public_id>/ask-settings ' - 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 zone_idstring (uuid) or null
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 ask_behaviour_overridestring — one of pass_and_review, hold_until_validated or null ask_mode_overridestring — one of platform, agent, both or null
Field Type Description dataobject Required. data.ask_behaviour_overridestring or null data.ask_mode_overridestring or null data.effective_ask_behaviourstring Required. data.effective_ask_modestring Required. data.public_idstring Required.
"ask_behaviour_override" : " string " ,
"ask_mode_override" : " string " ,
"effective_ask_behaviour" : " string " ,
"effective_ask_mode" : " string " ,
"public_id" : " 3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10 "