Replace where an operator placed the boxes of one map level (ADR-274).
const url = 'https://example.com/api/v1/topology/map/placement';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"boxes":[{"box_id":"example","x":1,"y":1}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/topology/map/placement \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "boxes": [ { "box_id": "example", "x": 1, "y": 1 } ] }'The body is the level’s whole placement; an empty list returns the level to the computed
layout. A folder-scoped caller replaces only the rows for the boxes their level draws: the rows
for boxes outside their folders are kept as they were. Omit group for the whole network, which
a group-scoped caller may not place: their whole network is a level of their own, not the one
everybody else sees. Placing boxes changes how the map is drawn and nothing that is monitored.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The folder to draw. Omit for the whole network.
Request Bodyrequired
Section titled “Request Bodyrequired”A level’s whole placement, replacing the one stored (ADR-274).
object
Every placed box of the level. Empty returns the level to the computed layout (for a folder-scoped caller, the boxes they are drawn).
One box an operator placed by hand (ADR-274).
object
The box: node:<uuid>, folder:<uuid> or external:<uuid>, whose x/y are its
top-left corner; or hang: and one of those, the access point or bundle hanging from that
box, whose x/y are the offset of its centre from the box’s centre.
Examplegenerated
{ "boxes": [ { "box_id": "example", "x": 1, "y": 1 } ]}Responses
Section titled “Responses”The level’s placement was replaced (or cleared)
A malformed or repeated box id, a coordinate out of range, or too many boxes
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}No valid bearer token
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Role lacks ManageConfig, or a group-scoped caller placing the whole network
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}No folder with that id that the caller can see
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}This deployment has no write side (skeleton mode)
The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI
document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies
undescribed — a client that has to guess the failure shape ends up parsing the success shape and
reading undefined.
object
object
Stable machine-readable code. Clients branch on this, never on the message.
Operator-facing sentence. Safe to display; never carries an internal error’s own text.
Examplegenerated
{ "error": { "code": "example", "message": "example" }}