Docs

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

Sign in Start free

Update a connected machine

Renames a machine or changes its event selection, suspicion events or offline alarm.

PATCH https://app.upfour.io/v1/runners/{runnerID}
PATCH https://app.upfour.io/v1/runners/{runnerID}

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

Authorization
AuthorizationA pls_ key. It stays in this browser tab. Needs api_key.write.
Path
Body
More fields2
suspicion_enabled

2 more fields are only available in JSON.

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 api_key.write stable Idempotency-Key supported returns 200

Parameters

FieldTypeDescription
runnerID required uuid path parameter

Body

application/json optional 4 fields

All other fields6 fields
event_typesstring[]

null for every confirmed type, or a non-empty list of names from the webhook catalogue.

In the app: Events
namestring · nullable

New display name, 1 to 64 printable characters. Also renames the scheduled job of the offline alarm.

In the app: Machine name
offline_alertRunnerOfflineAlertInput · nullable

Switch the offline alarm on or off and set its grace_seconds.

Nested fields 2 fields
FieldTypeDescription
enabled optional boolean · nullable In the app: Alert when the machine is offline
grace_seconds optional integer · nullable In the app: Alert after
suspicion_enabledboolean · nullable
In the app: Suspected outages

Returns

A successful request returns 200 with application/json.

Response fields 1 top-level fields
FieldTypeDescription
data RunnerView
RunnerView · 41 fields
FieldTypeDescription
arch string
cli_version string
connected_since string (date-time) · nullable Start of the oldest open stream. Null while offline.
delivery RunnerDeliveryView Delivery time from confirmation to the machine over the last 7 days. Suspicion events are measured apart.
RunnerDeliveryView · 8 fields
FieldTypeDescription
last_event_at string (date-time) · nullable
p50_ms integer · nullable Null without samples.
p95_ms integer · nullable Null without samples.
samples integer
suspicion RunnerLatencyView
RunnerLatencyView · 3 fields
FieldTypeDescription
p50_ms integer · nullable Null without samples.
p95_ms integer · nullable Null without samples.
samples integer
event_types string[] · nullable Confirmed event types the machine receives. Null receives every type of the webhook catalogue except webhook.test.
first_seen_at string (date-time)
host string Host name the CLI reports with X-Up4-Runner-Host. Display only.
id uuid
key RunnerKeyView · nullable The API key the machine used last. Null when that key was deleted.
RunnerKeyView · 4 fields
FieldTypeDescription
allowed_clients uuid[] · nullable Clients the key is limited to. Empty: the key reaches the company and every client.
id uuid
name string
scopes string[] · nullable Permission scopes the key carries, for example runner.stream.read.
last_deferred RunnerDeferralView · nullable The latest action the machine left to another machine because that one held the lock. Null without one.
RunnerDeferralView · 4 fields
FieldTypeDescription
at string (date-time)
handler string
runner_id uuid The machine that held the lock.
runner_name string
last_run RunnerLastRunView · nullable The latest handler run the machine reported, started or finished. Null without one, or when its client is outside your access.
RunnerLastRunView · 6 fields
FieldTypeDescription
at string (date-time) When upfour received the latest report of the run.
client_id uuid · nullable The incident's client. Null at company level.
handler string
incident_id uuid
kind string
outcome string · nullable one ofsucceededfailedtimeoutunknown Null while the run is in progress. unknown: the machine stopped reporting mid-run and its lock expired; no other machine repeated the action.
last_seen_at string (date-time)
name string Display name. Taken from X-Up4-Runner-Name on the first connection; a rename here sticks across later connections.
offline_alert RunnerOfflineAlertView The offline alarm. While enabled, upfour keeps a scheduled job for the machine that turns down after grace_seconds without a connection, with the alerts of a scheduled job.
RunnerOfflineAlertView · 2 fields
FieldTypeDescription
enabled boolean
grace_seconds integer Seconds without a connection before the alarm.
online boolean True while at least one stream of the machine is open on any instance.
os string
suspicion_enabled boolean Whether the machine also receives monitor.suspected and monitor.suspicion_cleared, the unconfirmed early warnings.

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.
403 permission_denied The credentials do not permit this action.
503 service_unavailable The service or a required dependency is temporarily unavailable.
400 documented response An unknown field, an event type outside the webhook catalogue, an empty event_types list, an invalid name or a grace_seconds outside the allowed range.
404 documented response No machine with this ID in the Company, or it was removed.

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