Aller au contenu

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.

Fenêtre 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"}'
Rôle dans l’organisationCe point de terminaison
ownerAutorisé
adminAutorisé
editorNon autorisé
viewerNon autorisé

Une clé porte le rôle que son propriétaire détient dans l’organisation. Voir Authentification.

Portée de clé d’API : zones:write

ParamètreTypeDescription
zone_idstring (uuid)Obligatoire.
ParamètreTypeDescription
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.
ChampTypeDescription
ask_behaviourstring — one of pass_and_review, hold_until_validated or null
ask_modestring — one of platform, agent, both or null
ChampTypeDescription
dataobjectObligatoire. 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.effectiveobjectObligatoire.
data.effective.ask_behaviourstringObligatoire.
data.effective.ask_modestringObligatoire.
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"
}
}
}