コンテンツにスキップ

Replace where an operator placed the boxes of one map level (ADR-274).

PUT
/api/v1/topology/map/placement
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.

group
string | null format: uuid

The folder to draw. Omit for the whole network.

Media typeapplication/json

A level’s whole placement, replacing the one stored (ADR-274).

object
boxes
required

Every placed box of the level. Empty returns the level to the computed layout (for a folder-scoped caller, the boxes they are drawn).

Array<object>

One box an operator placed by hand (ADR-274).

object
box_id
required

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.

string
x
required
integer format: int32
y
required
integer format: int32
Examplegenerated
{
"boxes": [
{
"box_id": "example",
"x": 1,
"y": 1
}
]
}

The level’s placement was replaced (or cleared)

A malformed or repeated box id, a coordinate out of range, or too many boxes

Media typeapplication/json

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
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

No valid bearer token

Media typeapplication/json

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
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

Role lacks ManageConfig, or a group-scoped caller placing the whole network

Media typeapplication/json

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
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

No folder with that id that the caller can see

Media typeapplication/json

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
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

This deployment has no write side (skeleton mode)

Media typeapplication/json

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
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}