Skip to content

Set a zone's Ask settings

PATCH/api/public/v1/zones/{zone_id}/ask-settings beta

ask_mode: platform | agent | both, or null to inherit. ask_behaviour: pass_and_review | hold_until_validated, or null to inherit (the root's resets to pass_and_review). A field that is not sent is left as it is. Admin.

Terminal window
curl --fail-with-body -X PATCH 'https://app.openlatch.ai/api/public/v1/zones/<zone_id>/ask-settings' \
-H "Authorization: Bearer $OPENLATCH_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"ask_behaviour":"pass_and_review"}'
Role in the organizationThis endpoint
ownerAllowed
adminAllowed
editorNot allowed
viewerNot allowed

A key carries the role its owner holds in the organization. See Authentication.

API key scope: zones:write

ParameterTypeDescription
zone_idstring (uuid)Required.
ParameterTypeDescription
Idempotency-Keystring or nullOptional. 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.
FieldTypeDescription
ask_behaviourstring — one of pass_and_review, hold_until_validated or null
ask_modestring — one of platform, agent, both or null
FieldTypeDescription
dataobjectRequired. The zone's own Ask delivery and Ask behaviour (`null` inherits), and what its Asks follow.
data.ask_behaviourstring or null
data.ask_modestring or null
data.effectiveobjectRequired.
data.effective.ask_behaviourstringRequired.
data.effective.ask_modestringRequired.
data.effective.ask_mode_from_zone_idstring or null
data.effective.from_zone_idstring or null
{
"data": {
"ask_behaviour": "string",
"ask_mode": "string",
"effective": {
"ask_behaviour": "string",
"ask_mode": "string",
"ask_mode_from_zone_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"from_zone_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10"
}
}
}