Incidents

Update a heartbeat

PUT/v1/heartbeats/{id}requires incidents:write

Replaces the name, escalation policy and timing. The configuration is fixed at creation; the policy must belong to it. A new interval or grace moves an armed deadline from the last ping, so an update cannot hide a heartbeat that is already late, and an open miss stays open until the next ping. Requires incidents:ingest as well.

Requestcurl -X PUT https://api.transmit.dev/v1/heartbeats/{id} \
  -H "Authorization: Bearer tr_v2_…" \
  -H "Content-Type: application/json" \
  -d '{
       "name": "…",
       "escalationPolicyId": "0f9f8e7d-6c5b-4a39-8271-1a2b3c4d5e6f",
       "intervalSeconds": 1
     }'

Parameters

NameInNotes
id requiredpathThe heartbeat id.

Body

FieldTypeNotes
name requiredstring1–100 characters
escalationPolicyId requiredstringuuid
intervalSeconds requiredinteger60–604800
graceSecondsinteger0–86400. defaults to 300

Responses

StatusMeaning
200Heartbeat after the update
401The API key is missing, malformed, expired or revoked
403The API key lacks the incidents:write scope
404Heartbeat or policy not found
409A heartbeat with this name exists
415Use application/json
422Invalid heartbeat

Every response body is described in the OpenAPI spec, which this page is generated from.