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
Parameters
| Field | Type | Description |
|---|---|---|
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
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
| Field | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
data | RunnerLockFinishView | |||||||
RunnerLockFinishView · 1 fields
| ||||||||
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.