Agents

Revert an agent to a previous version

Re-applies a previously-recorded version's whole-definition snapshot (prompt + spec + tags + skills) onto the live agent, recording a new head version equal to the chosen one. Requires agent.edit.

post/api/agents/{agentId}/versions/{versionId}/revert

Request

  • Base URL
    https://app.cotool.ai
  • Auth
    HTTP bearer

Path parameters

agentIdstring uuid required
versionIdstring uuid required

Response

Successful response

idstring uuid required
agentIdstring uuid required
origin'user' | 'sync' | 'model' required
sourceCommitShastring nullable required
changedByUserIdstring uuid nullable required
changedByEmailstring nullable required
descriptionstring nullable required
resolvedModelAliasstring nullable required
createdAtstring required

Changes

No recorded changes to this operation across all 2 revisions of this API.