Rollback Agent Version
Agent Versions
Rollback Agent Version
Restores a specific agent version by creating a new version whose snapshot matches the target. The version history is preserved — no versions are deleted. The rollback is recorded as an audit trail entry. Requires the agent:version:read permission.
POST
Rollback Agent Version
Attempting to roll back to the currently active version returns a
422 error.Code Examples
Headers
ID of the workspace. If not provided, the user’s selected workspace will be used.
Note: This field will be required in a future release of the API. It is highly recommended to set it now to ensure compatibility with future updates.
Path Parameters
The agent ID
The version ID to roll back to
Response
Response Fields
| Field | Type | Description |
|---|---|---|
| message | string | Confirmation message indicating the source version and the new active version |
| version.version_id | integer | The new version ID created by this rollback |
| version.published_by | string | Email of the user who performed the rollback |
| version.published_at | string (ISO8601) | Timestamp when the rollback version was created |
| version.rollback_from_version | integer | The version_id used as the source for this rollback |
| version.snapshot | object | Complete agent state restored by this rollback (same structure as Get Agent Version) |