Skip to main content
POST
Release a host's claim on a work item

Authorizations

X-Outerlayer-App-Id
string
header
required

Factory id the request is scoped to.

Authorization
string
header
required

API key (sk_outerlayer_*)

Headers

Signature
string

HTTP Message Signature (RFC 9421) made with the runner key's host key: runner=:<base64>:.

Signature-Input
string

The signature's covered components and parameters: runner=("@method" "@path" "@query" "content-digest");created=<unix seconds>;nonce="<random>";keyid="<host key fingerprint>";alg="ed25519".

Content-Digest
string

RFC 9530 digest of the request body, always sent, including for a request with none: sha-256=:<base64>:.

Path Parameters

workItemId
string
required

Body

application/json
host
string
required
Required string length: 1 - 255
cause
enum<string>

The part of a managed runner's own infrastructure that ended the build at provision: its build image, its sandbox provider or its setup of the sandbox. A managed runner's build released with a cause is not billed. A self-hosted runner's build is billed whatever it sends.

Available options:
build_image,
sandbox_provider,
sandbox_setup
claimId
string<uuid>
disk
object
endedAt
string<date-time>

When the runner's job ended, as an ISO date-time. The gateway holds it between the lease's start and the time the release arrives.

environment
object
exitCode
integer
Required range: -2147483648 <= x <= 2147483647
log
string
outcome
enum<string>
Available options:
ok,
incomplete,
failed,
timed_out,
idle,
lease_lost,
interrupted,
stopped
proofTests
object

For each criterion whose proof the runner's recording examined, whether a test records it. A criterion whose proof was already current is left out.

reason
string
Maximum string length: 200
resume
object
stage
enum<string>
Available options:
provision,
command,
sync,
cleanup,
report

Response

The lease is released (now, or already).

data
object
required