Update an emergency
Required permission: write. Recategorize an emergency — resolution
lives at POST .../resolutions. Resolved emergencies are immutable.
Only categoryId/categoryName are persisted today. Sending
description, metadata, or occurredAt returns 422 (not yet supported);
those fields will be honored once storage is added to AlertDBModel.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Target organization id (from the route path)
Emergency id
Body
PATCH body for /orgs/{orgId}/emergencies/{emergencyId} — attribute mutations only.
Resolution lives at POST .../resolutions. At least one field must be supplied.
Response
Successful Response
Minimal category info embedded on emergencies + webhook payloads.
Unified actor shape (declaredBy / resolvedBy) for both user and api_key attribution.
Unified actor shape (declaredBy / resolvedBy) for both user and api_key attribution.