Skip to content

put_schedule

PUT
/api/v1/config-backup-schedule
curl --request PUT \
--url https://example.com/api/v1/config-backup-schedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "at_hour": 1, "at_minute": 1, "concurrency": 1, "time_zone": "example" }'
Media typeapplication/json

A new start time and how many nodes are fetched at once.

object
at_hour
required

0–23, a wall time in time_zone.

integer format: int32
at_minute
required

0–59.

integer format: int32
concurrency
required

1 to max_concurrency.

integer format: int32
time_zone

The IANA zone of the start time. Absent or null means UTC.

string | null
Examplegenerated
{
"at_hour": 1,
"at_minute": 1,
"concurrency": 1,
"time_zone": "example"
}

Saved. The new time takes effect the next time it comes round; a run already going is left to finish

Media typeapplication/json

When config backups are fetched, and where the latest run stands (ADR-210 stage 6).

object
at_hour
required

The start time, a wall time in time_zone.

integer format: int32
at_minute
required
integer format: int32
auto_save
required

Whether Yagra saves any backed-up device on its own (ADR-222 decisions 8 and 13). Since Inc.11 the switch is per node (POST /api/v1/config-backups/auto-save), and this says only whether at least one node is on.

object
enabled
required

At least one backed-up node is saved automatically.

boolean
concurrency
required

How many nodes are fetched at once.

integer format: int32
done

Nodes the latest run has tried, and nodes it covers: the nodes switched on whose login is known to work. null for a caller who does not see the whole fleet.

integer | null
max_concurrency
required

The most concurrency may be.

integer format: int32
mcp_config_text
required

Whether an MCP client may read configuration text through get_node_config (ADR-210 stage 10 decision 85). Changed with PUT /api/v1/config-mcp-settings.

object
enabled
required

Off by default.

boolean
run_finished_at

When it finished; null while it is going.

string | null format: date-time
run_started_at

The latest run; null before the first.

string | null format: date-time
running
required

A run is going.

boolean
time_zone

The IANA zone of the start time; null means UTC (ADR-221).

string | null
total
integer | null
upcoming_start_at

When the next run starts; null while one is going.

string | null format: date-time
Examplegenerated
{
"at_hour": 1,
"at_minute": 1,
"auto_save": {
"enabled": true
},
"concurrency": 1,
"done": 1,
"max_concurrency": 1,
"mcp_config_text": {
"enabled": true
},
"run_finished_at": "2026-04-15T12:00:00Z",
"run_started_at": "2026-04-15T12:00:00Z",
"running": true,
"time_zone": "example",
"total": 1,
"upcoming_start_at": "2026-04-15T12:00:00Z"
}

An hour, minute or count out of range (invalid_config_backup_schedule), or an unknown zone (invalid_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"
}
}

Lacks manage-config, or sees only some folders (scope_unsupported): the schedule is the whole deployment’s

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