Skip to main content
POST /api/v1/cloud/environments/{environment_id}/work/{work_id}/heartbeat Sends a heartbeat for a work item and extends the worker lease. The first successful heartbeat moves a starting item to active. Use expected_last_heartbeat for optimistic lease ownership. If another worker has taken over the item, the precondition fails with 412.

Path parameters

Headers

Query parameters

Example request

Example response

HTTP 200 OK

Response fields

Returns a Work heartbeat object.

Errors

See Errors for the full error envelope.

Cloud environment setup

Choose the container, network, and dependencies your agent runs in.