We’re managing Retell agents via API as part of a CI/CD pipeline. Our current deploy flow is:
-
PATCH /update-conversation-flow/{id}— update the flow -
PATCH /update-agent/{id}— update agent config -
POST /publish-agent-version/{id}— publish
This works fine on the first deploy. On subsequent deploys, step 1 fails with:
400 Cannot update published conversation flow
Question:
What is the correct API workflow to update a conversation flow that has already been published?
Once we deploy through API, in the UI looks like this:
We would need to replicate the process of clicking in the button `Create new version` in the API to be able to make a new deploy.
