Ir al contenido

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.

Ventana de terminal
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"}'
Rol en la organizaciónEste punto de conexión
ownerPermitido
adminPermitido
editorNo permitido
viewerNo permitido

Una clave tiene el rol que su propietario ocupa en la organización. Consulte Autenticación.

Ámbito de la clave de API: zones:write

ParámetroTipoDescripción
zone_idstring (uuid)Obligatorio.
ParámetroTipoDescripción
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.
CampoTipoDescripción
ask_behaviourstring — one of pass_and_review, hold_until_validated or null
ask_modestring — one of platform, agent, both or null
CampoTipoDescripción
dataobjectObligatorio. 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.effectiveobjectObligatorio.
data.effective.ask_behaviourstringObligatorio.
data.effective.ask_modestringObligatorio.
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"
}
}
}