Agent publish endpoint doesn't create new draft version

Using https://api.retellai.com/publish-agent-version/{agent_id} to publish a new agent version doesn’t create a new draft version like the UI does. This used to work.

Hey @zachsents

POST /publish-agent-version/{agent_id} only publishes an existing draft in place — it does not create a new draft. To replicate the UI’s behavior, call POST /create-agent-version/{agent_id} first (with base_version) to create a draft, then publish it.

@shaw Where’s the docs on this?

Hey @zachsents doc doesn’t cover this

Lol can you update the docs?

@zachsents Ok I tell the team to update the docs.