Restore an agent definition version
POST /api/agent-definitions/{id}/versions/{versionId}/restore
Restores a previous version of an agent definition by publishing its configuration as a new version. History is preserved: the prior published version is superseded rather than overwritten. When the restored configuration already matches the current configuration, no new version is created.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The unique identifier of the agent definition.
The unique identifier of the version to restore.
Responses
Section titled “ Responses ”The version was restored and a new published version was recorded, or the restore was a no-op.
The result of restoring a version. A restore creates a new published version rather than mutating history. When the restored content matches the current content, no new version is created.
object
Identifier of the newly published version, or of the existing current version when the restore was a no-op.
Example
v9a8b7c6-5432-10fe-dcba-0987654321abWhether a new version was created. False when the restored content already matched the current content.
Example
trueThe version number that was restored.
Example
2No agent definition or version exists with the given ID in the authenticated tenant.
Standard error response returned by all endpoints on failure.
object
A human-readable error message describing what went wrong.
Example
Conversation not found