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
| Name | In | Notes |
|---|---|---|
id required | path | The heartbeat id. |
Body
| Field | Type | Notes |
|---|---|---|
name required | string | 1–100 characters |
escalationPolicyId required | string | uuid |
intervalSeconds required | integer | 60–604800 |
graceSeconds | integer | 0–86400. defaults to 300 |
Responses
| Status | Meaning |
|---|---|
200 | Heartbeat after the update |
401 | The API key is missing, malformed, expired or revoked |
403 | The API key lacks the incidents:write scope |
404 | Heartbeat or policy not found |
409 | A heartbeat with this name exists |
415 | Use application/json |
422 | Invalid heartbeat |
Every response body is described in the OpenAPI spec, which this page is generated from.