Aller au contenu

Écarter une alerte de sécurité

PATCH/api/public/v1/alerts/{alert_id}/dismiss

Idempotent. Dismissal releases the row from the dedup unique index (`uq_security_alerts_org_event_active is partial on dismissed_at IS NULL`) so a future verdict on the same event creates a fresh row instead of upserting onto the dismissed one.

Fenêtre de terminal
curl --fail-with-body -X PATCH 'https://app.openlatch.ai/api/public/v1/alerts/<alert_id>/dismiss' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
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 : alerts:write

ParamètreTypeDescription
alert_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
dismissed_atstring (date-time) or nullObligatoire.
idstring (uuid)Obligatoire.
read_atstring (date-time) or nullObligatoire.
statusstring — one of unread, read, dismissedObligatoire.
{
"dismissed_at": "2026-01-15T14:32:05Z",
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"read_at": "2026-01-15T14:32:05Z",
"status": "unread"
}