Ir al contenido

Responder a un elemento Ask

POST/api/public/v1/asks/{ground_id}/answer

Ventana de terminal
curl --fail-with-body -X POST 'https://app.openlatch.ai/api/public/v1/asks/<ground_id>/answer' \
-H "Authorization: Bearer $OPENLATCH_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"verdict":"allow","scope":"exact_action"}'
Rol en la organizaciónEste punto de conexión
ownerPermitido
adminPermitido
editorPermitido
viewerNo permitido

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

Ámbito de la clave de API: triage:write

ParámetroTipoDescripción
ground_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
recommendation_idstring (uuid) or nullOptional. The suggested answer you are answering from.
scopestring — one of exact_action, resource_class, rule_agent, rule_zoneObligatorio.
verdictstring — one of allow, blockObligatorio.
CampoTipoDescripción
dataobjectObligatorio. An ASK ground after an answer or a snooze: its state, and what was chosen.
data.answered_atstring (date-time) or null
data.atom_idstring or null
data.chosen_scopestring or null
data.first_seen_atstring (date-time)Obligatorio.
data.idstringObligatorio.
data.last_seen_atstring (date-time)Obligatorio.
data.occurrencesintegerObligatorio.
data.policy_idstring or null
data.snoozed_untilstring (date-time) or null
data.statestringObligatorio.
data.zone_idstring or null
{
"data": {
"answered_at": "2026-01-15T14:32:05Z",
"atom_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"chosen_scope": "string",
"first_seen_at": "2026-01-15T14:32:05Z",
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"last_seen_at": "2026-01-15T14:32:05Z",
"occurrences": 3,
"policy_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"snoozed_until": "2026-01-15T14:32:05Z",
"state": "string",
"zone_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10"
}
}