Docs

Type a word or a question. Esc closes the search.

Sign in Start free

End an action lock

Ends the run behind a lock and keeps the lock for the handler's cooldown.

POST https://app.upfour.io/v1/runner/locks/{token}/finish
POST https://app.upfour.io/v1/runner/locks/{token}/finish

A real request. Sending it changes data in your upfour account.

Authorization
AuthorizationA pls_ key. It stays in this browser tab. Needs runner.report.write.
Path
Body
Headers

Sent directly from your browser to https://app.upfour.io/v1. Mutating calls get an automatic Idempotency-Key when the field is empty.

Request
Responsenot sent yet
Fill in a key and press Send request (⌘↵).
The answer appears here.
scope runner.report.write stable Idempotency-Key supported returns 200

Parameters

FieldTypeDescription
token required uuid path parameter · The token POST /v1/runner/locks returned with the lock.
X-Up4-Runner-ID required uuid header parameter · Stable UUID of the runner.
X-Up4-Runner-Name required string length 1–64 header parameter · Printable runner name.

Body

application/json optional 1 field

hold_msintegerrequired

How long the lock stays after the run: the handler cooldown, so no machine repeats the action meanwhile. 0 frees it at once.

Returns

A successful request returns 200 with application/json.

Response fields 1 top-level fields
FieldTypeDescription
data RunnerLockFinishView
RunnerLockFinishView · 1 fields
FieldTypeDescription
expires_at string (date-time) When the lock frees.

Errors

Only the errors this operation can return. Every error uses the same envelope.

Status Code Meaning
400 bad_request The request is malformed or fails validation.
404 not_found The requested resource does not exist or is outside the caller's scope.
503 service_unavailable The service or a required dependency is temporarily unavailable.
400 documented response A hold_ms below zero or above one day.
404 documented response The token is unknown, belongs to another machine or key, or its run was already closed as unknown.

Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.