コンテンツにスキップ

get_unsaved

GET
/api/v1/nodes/{node_id}/config-backup/unsaved
curl --request GET \
--url https://example.com/api/v1/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/config-backup/unsaved \
--header 'Authorization: Bearer <token>'
node_id
required
string format: uuid

Node id

What the device printed when the save script last compared its running configuration with its startup configuration, while the two differ, with oxidized’s secret filter and Yagra’s own applied. Only a model Yagra compares over the command line has one

Media typeapplication/json

How running differed from startup when the save script last compared them (Inc.9).

object
checked_at
required

When the script last compared them.

string format: date-time
since
required

The first time the two were seen to differ.

string format: date-time
text
required

What the device printed for that comparison.

string
Examplegenerated
{
"checked_at": "2026-04-15T12:00:00Z",
"since": "2026-04-15T12:00:00Z",
"text": "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 ManageConfig

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 node the caller can see, or it is not read as unsaved with a comparison kept (config_unsaved_not_found)

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