Request
POST https://app.botsify.com/api/v1/update-agent
Authorization: Bearer token — include your token in the Authorization: Bearer <token> header.
Body Parameters
A human-readable label for this version (e.g.
"v2.1 — Holiday Tone"). Used to identify the version in the dashboard and API responses.A serialized definition of the agent’s conversation flow, including branching logic and fallback handling.
Rules for how the agent handles and references information about the user during a conversation.
When provided alongside
edit: true, updates the existing version with this ID rather than creating a new one.Example — Create a New Version
Example — Update an Existing Version
Response
A successful request returns200 OK with the saved version object.
