Skip to content

Remove a tag from every node, folder, refusal, routing rule and grouping exception at once (ADR-263). Refused while a routing rule or an exception would widen without it: one naming this tag and no folder would reach every node, and one joining this tag to its folders by `and` would reach the whole of those folders.

POST
/api/v1/node-tags/delete
curl --request POST \
--url https://example.com/api/v1/node-tags/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "tag": "example" }'
Media typeapplication/json

Delete one tag everywhere it is named.

object
tag
required

The tag as it is stored, case included.

string
Examplegenerated
{
"tag": "example"
}

Deleted; how many rows changed in each place

Media typeapplication/json

What a tag rename or delete changed, per place (ADR-263). All zero means the tag was named nowhere, which is not an error.

object
exceptions
required

Grouping exceptions whose tags changed.

integer format: int64
folder_refusals
required

Folders whose refusals changed.

integer format: int64
folders
required

Folders whose labels changed.

integer format: int64
node_refusals
required

Nodes whose refusals changed.

integer format: int64
nodes
required

Nodes whose own labels changed.

integer format: int64
registered
required

Registered names changed: 1 when the tag was registered (ADR-263 Inc.2), else 0.

integer format: int64
rules
required

Routing rules whose tags changed.

integer format: int64
Examplegenerated
{
"exceptions": 1,
"folder_refusals": 1,
"folders": 1,
"node_refusals": 1,
"nodes": 1,
"registered": 1,
"rules": 1
}

The tag is empty

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 ManageSystem

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"
}
}

A routing rule or a grouping exception would widen without this tag (its only tag, with no folder or joined to its folders by and); nothing was changed

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 core 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"
}
}