Skip to content

Update an endpoint

PATCH
/endpoints/{endpoint}
curl --request PATCH \
--url https://example.com/api/v1/endpoints/boi.17c.415a.%24comp.display-1%2Fhttps \
--header 'Content-Type: application/json' \
--data '{ "inputs": { "additionalProperty": "example" }, "label": "example", "out_of_band": true, "outpost": "example", "params": "example", "transport": "example" }'

Patches an endpoint’s outpost placement, params, label, out-of-band mark, or (driver-attached) its connection inputs in place: the host, port and attached secret references (a secret taking secret:bind, as on create), validated against the driver’s declared inputs, the endpoint’s tasks re-derived in the same transaction. A value the driver refuses is a 400 naming the field. An empty label clears it and the surface falls back to the derived name. Gated by endpoint:update; read and update scopes (through the component) drive the 404 versus 403 split.

endpoint
required

The endpoint, as / (the component by name, dotted address or uuid) or by its uuid. The slash is percent-encoded in a URL, as the CLI does

string

The endpoint, as / (the component by name, dotted address or uuid) or by its uuid. The slash is percent-encoded in a URL, as the CLI does

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
inputs

A driver-attached endpoint’s inputs, edited in place (#1061): the host, the port, an attached secret’s reference name, any input the driver declares. Merged over the stored inputs and validated against the driver; a value it refuses is a 400 naming the input. Changing where a credential is sent needs the caller to hold secret:bind on it, a 403 naming secret:bind without it

object
key
additional properties
One of:
string
label

A new label; an empty string clears it, and the surface falls back to the derived name. Omit to leave it alone

string
<= 200 characters
out_of_band

Mark the endpoint a management path that answers through a reboot of its device (true), or an ordinary one (false). Omit to leave it alone

boolean
outpost

Reassign the outpost placement, by name or id

string
params

Replace the address/target settings (jsonb): set target as host[:port] (host and port keys are refused); timeout, count (icmp), tls-mode (tls, https, wss). On a driver-attached endpoint only the timeout is set here: its address derives from its host and port inputs

transport

The transport: a driver-attached endpoint takes only one its driver speaks

string

OK

Media type application/json

A connection to a component over one transport, the API Omniglass reaches it through.

object
$schema

A URL to the JSON Schema for this object.

string format: uri
component

The owning component name; absent for a server-hosted endpoint

string
component_id

The owning component’s id; the stable form of component

string
driver

The driver this endpoint was attached through (#813); absent for a bare probe endpoint

string
driver_id

The attached driver’s id; the stable form of driver

string
id
required

The endpoint’s uuid, the stable handle; / is the address an operator types

string
inputs

The effective inputs supplied at attach, defaults baked; secret inputs are reference names, never values

label

The friendly string an operator reads, and the only identity string an operator types here: the name is derived from the transport. Absent when unset, and a surface with none renders the name verbatim

string
name
required

The derived name (its transport), unique within the owning component

string
out_of_band
required

A management path to the device (a BMC, a management port) that answers through a reboot of it: a reboot’s hold leaves this endpoint’s gate open. A power command on the outlet feeding the device still holds it

boolean
outpost

The outpost placement name, if assigned

string
outpost_id

The placed outpost’s id; the stable form of outpost

string
params

The address/target settings (jsonb): set target as host[:port] (host and port keys are refused); timeout, count (icmp), tls-mode (tls, https, wss)

transport
required

The transport name (the wire this endpoint speaks over), from the built-in transports

string
webhook

A webhook endpoint’s own block (#1024): where a sender posts, the scheme that checks it, and what the scheme has refused; absent on every other transport, and on a list

object
minted_at

When the token was minted or last rotated

string format: date-time
path
required

The path a sender posts to, under the server’s /api/v1 base, its token masked: reveal the token through secret (gated by secret:reveal, audited)

string
refused

What the scheme has refused: the count, and the latest one’s time, source and reason (never the credential); absent until one is

object
at
required

When the latest was refused, flushed once per tick

string format: date-time
count
required

Posts the scheme refused, each answered 401

integer format: int64
reason
required

Why the latest was refused: a missing or mismatched signature, a timestamp outside the window, a mismatched token or login

string
source
required

The latest refused sender’s address

string
scheme
required

The scheme the driver declares: hmac, token, basic, or none for a bare endpoint or a driver that checks nothing

string
secret

The secret holding the token, /webhook-token; absent once deleted (rotate to mint another)

string
signed
required

False when the scheme is none: the endpoint reads unsigned, anyone holding its URL can post, and there is no replay protection

boolean

Example

{
"$schema": "/api/v1/schemas/EndpointBody.json"
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

Example

{
"$schema": "/api/v1/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "about:blank"
}