Skip to main content
PATCH
/
orgs
/
{org_id}
/
emergencies
/
{emergency_id}
Update an emergency
curl --request PATCH \
  --url https://api.punchrescue.com/api/public/v1/orgs/{org_id}/emergencies/{emergency_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "categoryId": "<string>",
  "categoryName": "<string>",
  "description": "<string>",
  "metadata": {},
  "occurredAt": "<string>"
}
'
{
  "emergencyId": "<string>",
  "orgId": "<string>",
  "status": "<string>",
  "externalId": "<string>",
  "category": {
    "id": "<string>",
    "name": "<string>",
    "color": "<string>",
    "severity": 123
  },
  "source": "<string>",
  "description": "<string>",
  "occurredAt": "<string>",
  "createdAt": "<string>",
  "resolvedAt": "<string>",
  "resolvedBy": {
    "type": "<string>",
    "id": "<string>",
    "name": "<string>"
  },
  "declaredBy": {
    "type": "<string>",
    "id": "<string>",
    "name": "<string>"
  },
  "location": {
    "latitude": 123,
    "longitude": 123,
    "floorId": "<string>"
  },
  "resolutionNote": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org_id
string
required

Target organization id (from the route path)

emergency_id
string
required

Emergency id

Body

application/json

PATCH body for /orgs/{orgId}/emergencies/{emergencyId} — attribute mutations only.

Resolution lives at POST .../resolutions. At least one field must be supplied.

categoryId
string | null
categoryName
string | null
description
string | null
Maximum string length: 2000
metadata
Metadata · object
occurredAt
string | null

Response

Successful Response

emergencyId
string
required
orgId
string
required
status
string
required
externalId
string | null
category
PublicCategoryRef · object

Minimal category info embedded on emergencies + webhook payloads.

source
string | null
description
string | null
occurredAt
string | null
createdAt
string | null
resolvedAt
string | null
resolvedBy
PublicActorRef · object

Unified actor shape (declaredBy / resolvedBy) for both user and api_key attribution.

declaredBy
PublicActorRef · object

Unified actor shape (declaredBy / resolvedBy) for both user and api_key attribution.

location
PublicLocation · object
resolutionNote
string | null
metadata
Metadata · object