Only one version can be active at a time. Setting a new version as active automatically deactivates the previously active version. The switch takes effect immediately for all new conversations.
Request
POST https://app.botsify.com/api/v1/set-active-version
Authorization: Bearer token — include your token in the Authorization: Bearer <token> header.
Body Parameters
integer
required
The ID of the version you want to make active. You can retrieve available version IDs using the List Agent Versions endpoint.
string
The identifier of the bot to which the version belongs. Required when your token has access to multiple bots.
Example
Response
A successful request returns200 OK confirming which version is now active.
