Rename a tag on every node, folder, refusal, routing rule and grouping exception at once (ADR-263). Renaming onto a tag that already exists merges the two.
const url = 'https://example.com/api/v1/node-tags/rename';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"from":"example","to":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/node-tags/rename \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "from": "example", "to": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Rename one tag everywhere it is named.
object
The tag as it is stored now, case included. Not length-checked, so an old label the current rules would refuse can still be renamed away.
The new name. When a row already carries it, the two become one.
Examplegenerated
{ "from": "example", "to": "example"}Responses
Section titled “Responses”Renamed; how many rows changed in each place
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
Grouping exceptions whose tags changed.
Folders whose refusals changed.
Folders whose labels changed.
Nodes whose refusals changed.
Nodes whose own labels changed.
Registered names changed: 1 when the tag was registered (ADR-263 Inc.2), else 0.
Routing rules whose tags changed.
Examplegenerated
{ "exceptions": 1, "folder_refusals": 1, "folders": 1, "node_refusals": 1, "nodes": 1, "registered": 1, "rules": 1}from is empty, to is not a valid tag, or the two are the same
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 ManageSystem
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 core 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" }}