Roll the draft back to a retained published revision and republish it

Rolls the agent back to an earlier PUBLISHED revision from history (targetRevision, see the history field on GET .../draft) and deploys it to the provider right away - it's a publish, not just an overwritten draft. expectedRevision guards against a concurrent edit the same way PUT .../draft does. Unlike .../draft/publish, WITHOUT Idempotency-Key - repeating the same body is safe on its own.

post/v1/agents/{id}/draft/rollback

Request

  • Base URL: https://volai.cz
  • URL: https://volai.cz/v1/agents/{id}/draft/rollback
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

expectedRevisioninteger required

Current draft revision from GET /v1/agents/{id}/draft. On revision_conflict reload before retrying; never guess or increment it locally.

targetRevisioninteger required

Retained published revision to restore and republish, from the draft history.

Response

Rolled back

revisionnumber required

Changes

No recorded changes to this operation across all 1 revision of this API.