コンテンツにスキップ

Replace what a window says (ADR-261 Inc.5). The body is the create body: name, target, bounds and zone, all of them — `enabled` keeps its own route.

PUT
/api/v1/maintenance-windows/{id}/definition
curl --request PUT \
--url https://example.com/api/v1/maintenance-windows/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/definition \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "ends_at": "example", "name": "example", "scope_id": "example", "scope_level": "example", "starts_at": "example", "time_zone": "example" }'
id
required
string format: uuid

Maintenance window id

Media typeapplication/json

Create-window body. Times are RFC 3339; scope_level is node, profile or group_id (a folder-group UUID, resolved recursively — the All Nodes right-click scope).

object
ends_at
required
string
name
required
string
scope_id
required
string
scope_level
required
string
starts_at
required
string
time_zone

The IANA zone the operator typed the times in (ADR-261), recorded so the list can show the requester’s clock. It does not change when the window runs — starts_at / ends_at are the instants. Omit (or send empty) to record none.

string | null
Examplegenerated
{
"ends_at": "example",
"name": "example",
"scope_id": "example",
"scope_level": "example",
"starts_at": "example",
"time_zone": "example"
}

Window updated

The same refusals as creating a window: empty name/scope_id, an unknown scope_level, bounds that are not RFC 3339 or end at or before they start, or an unknown time_zone

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 the ManageMaintenance permission, or a group-scoped caller named a profile

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 such maintenance window, or a group_id scope naming a group that does not exist

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

The fleet-wide window an upgrade opened (window_not_editable); its end is the upgrade’s to decide

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