POST
Renew a lease

Authorizations

Authorization
string
header
required

An environment key, aek_.... Only works on the worker routes of its own environment.

Headers

X-Worker-Hostname
string

The worker's host name, shown in the environment's worker list. At most 200 characters are kept.

Maximum string length: 200
X-Worker-Version
string

The worker's version (for example gizzi 2.4.0), shown in the environment's worker list.

Maximum string length: 200

Path Parameters

work_id
string
required
Example:

"work_0123456789abcdef01234567"

Body

application/json
lease_generation
integer
required

The generation from the claim. A lower number than the server holds is stale.

Response

The renewed lease.

work_id
string
required
lease_generation
integer
required
lease_expires_at
string<date-time> | null
required
status
enum<string>
required
Available options:
claimed,
ready,
completed