Aller au contenu

Reporter un élément Ask

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

Fenêtre de terminal
curl --fail-with-body -X POST 'https://app.openlatch.ai/api/public/v1/asks/<ground_id>/snooze' \
-H "Authorization: Bearer $OPENLATCH_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"hours":24}'
Rôle dans l’organisationCe point de terminaison
ownerAutorisé
adminAutorisé
editorAutorisé
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 : triage:write

ParamètreTypeDescription
ground_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
hoursinteger — 24
ChampTypeDescription
dataobjectObligatoire. 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)Obligatoire.
data.idstringObligatoire.
data.last_seen_atstring (date-time)Obligatoire.
data.occurrencesintegerObligatoire.
data.policy_idstring or null
data.snoozed_untilstring (date-time) or null
data.statestringObligatoire.
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"
}
}