Mute many nodes at once (ADR-124 Inc.11) — the mute twin of the bulk window above, and a separate route because it asks for a different permission: muting is `AckAlerts`, opening a window is `ManageMaintenance`. Folding the two into one endpoint would mean picking one of them for both.
const url = 'https://example.com/api/v1/mutes/bulk';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"metric_name":"example","node_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"reason":"example","until":"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/mutes/bulk \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "metric_name": "example", "node_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "reason": "example", "until": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Mute each of many nodes until one moment.
object
Examplegenerated
{ "metric_name": "example", "node_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "reason": "example", "until": "example"}Responses
Section titled “Responses”How many mutes were created
What a bulk suppression write actually did. Shared by the window and the mute form: they answer the same question and a second shape would be two names for one fact.
object
Rows actually written. Lower than requested is normal: an id can name a node that has
since been deleted, or one outside the caller’s scope. The two are not distinguished.
Distinct node ids the request named, after de-duplication.
Examplegenerated
{ "created": 1, "requested": 1}An unparseable or past until, an illegal metric name, or more ids than one request may carry
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 AckAlerts
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" }}