put_schedule
const url = 'https://example.com/api/v1/config-backup-schedule';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"at_hour":1,"at_minute":1,"concurrency":1,"time_zone":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”A new start time and how many nodes are fetched at once.
object
0–23, a wall time in time_zone.
0–59.
1 to max_concurrency.
The IANA zone of the start time. Absent or null means UTC.
Examplegenerated
{ "at_hour": 1, "at_minute": 1, "concurrency": 1, "time_zone": "example"}Responses
Section titled “Responses”Saved. The new time takes effect the next time it comes round; a run already going is left to finish
When config backups are fetched, and where the latest run stands (ADR-210 stage 6).
object
The start time, a wall time in time_zone.
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
At least one backed-up node is saved automatically.
How many nodes are fetched at once.
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.
The most concurrency may be.
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
Off by default.
When it finished; null while it is going.
The latest run; null before the first.
A run is going.
The IANA zone of the start time; null means UTC (ADR-221).
When the next run starts; null while one is going.
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)
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" }}Lacks manage-config, or sees only some folders (scope_unsupported): the schedule is the whole deployment’s
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 deployment 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" }}