Renew the lease on a wake this Runner holds (every 30 s). Also a liveness signal. 409 lease_lost if the lease lapsed, the run was cancelled or the wake was taken back: kill the session and discard its result.
POST
/api/v1/runner/v1/wakes/{id}/heartbeat
const url = 'https://example.com/api/v1/runner/v1/wakes/example/heartbeat';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"nonce":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/runner/v1/wakes/example/heartbeat \ --header 'Content-Type: application/json' \ --data '{ "nonce": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
nonce
required
string
Examplegenerated
{ "nonce": "example"}