Aller au contenu

Modifier une anomalie

PATCH/api/public/v1/anomalies/{public_id}

Fenêtre de terminal
curl --fail-with-body -X PATCH 'https://app.openlatch.ai/api/public/v1/anomalies/<anomaly_public_id>' \
-H "Authorization: Bearer $OPENLATCH_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"archived":false}'
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
public_idstringObligatoire.
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
archivedboolean or null
readboolean or null
ChampTypeDescription
dataobjectObligatoire.
data.agent_idstring or null
data.archived_atstring (date-time) or null
data.atom_idstring or null
data.dimensionstring or null
data.idstringObligatoire.
data.impactstring or null
data.modestring or null
data.occurred_atstring (date-time)Obligatoire.
data.policy_public_idstring or null
data.public_idstringObligatoire.
data.read_atstring (date-time) or null
data.statusstringObligatoire.
data.titlestringObligatoire.
data.verdictstring or null
data.whystringObligatoire.
data.zone_idstring or null
data.zone_pathstring or null
{
"data": {
"agent_id": "agt_01jbwa2k1vfrn9y42xhgxhmzj2",
"archived_at": "2026-01-15T14:32:05Z",
"atom_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"dimension": "string",
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"impact": "string",
"mode": "string",
"occurred_at": "2026-01-15T14:32:05Z",
"policy_public_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"public_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"read_at": "2026-01-15T14:32:05Z",
"status": "string",
"title": "string",
"verdict": "string",
"why": "string",
"zone_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"zone_path": "Engineering / Platform"
}
}