Roll Back Agent Flow

Publish a prior flow version as the active graph.

Authentication

AuthorizationBearer

Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.

Path parameters

idstringRequired

Request

This endpoint expects an object.
version_idstringRequired
The flow version to roll back to.

Response

The flow version that is now active.
idstring
Flow version id. A raw UUID, not a prefixed external id.
agent_idstring
versioninteger
Monotonic revision number within the agent.
is_activeboolean
is_draftboolean
parent_version_idstring or null
namestring
notesstring
published_bystring
published_atdatetime or null
updated_atdatetime

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error