The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Record Heartbeat
3url: https://platform.claude.com/docs/en/api/beta/environments/work/heartbeat
4---
5
16# Record Heartbeat
27
38**POST** `/v1/environments/{environment_id}/work/{work_id}/heartbeat`
from line 35
3035
3136 - `string`
3237
33 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
38 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
3439
3540 - `"message-batches-2024-09-24"`
3641
from line 83
7883
7984 - `"user-profiles-2026-08-18"`
8085
86 - `"user-profiles-2026-09-04"`
87
8188 - `"advisor-tool-2026-03-01"`
8289
8390 - `"managed-agents-2026-04-01"`
from line 133
126133
127134 Response after recording a heartbeat for a work item.
128135
136 - `type: "work_heartbeat"`
137
138 The type of response
139
140 default: work_heartbeat
141
129142 - `last_heartbeat: string`
130143
131144 RFC 3339 timestamp of the actual heartbeat from DB
from line 164
151164 - `ttl_seconds: number`
152165
153166 Effective TTL applied to the lease
154
155 - `type: "work_heartbeat"`
156
157 The type of response
158
159 default: work_heartbeat
160167
161168## Example
162169