Skip to content

Restore Agent Version

POST/v1/agents/{agent_id}/restore

Copy the configuration of source_version into a new current version. History is never rewritten. Services and Schedules stay pinned to the version they were created with until you update them.

Path parameters

stringagent_idrequired

Agent ID (agt_ prefix).

Headers

Optional<string>Idempotency-Key

Optional. When omitted the service generates one, so a retried request can create a duplicate. Send your own stable key for retries.

Request body

JSON object.

integersource_versionrequired

Earlier version to restore.

integerrow_versionrequired

The row_version you last read. A stale value returns 409.