Record Heartbeat changedapi/beta/environments/work/heartbeat
Nearest release: v2.1.328, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+10added
Lines−0removed
From line
213
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits23to this page, all time
## Errors
The whole hunk
from line 213, old and new numbered
/
from line 213
213213
214214 Effective TTL applied to the lease
215215
216## Errors
217
218Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
219
220Each code below is the value of `error.details.error_code` in the response body.
221
222- `heartbeat_precondition_failed` (HTTP status 412)
223
224 `expected_last_heartbeat` does not match the stored heartbeat, so another worker may hold the lease.
225
216226## Example
217227
218228```bash
No line in this hunk matches that.