Skip to main content

Rename an agent branch

PATCH 

https://platform.docana.com/api/v1/agents/:agentId/branches/:branchId/

Renames a branch. Useful for a variant demoted from MAIN by a promote — it's given a generated placeholder name if it still carried the reserved literal name 'main' (see the promote endpoint), and this lets the user replace that with something meaningful. Names are unique per agent; a duplicate answers 409.

Request

Responses

The renamed branch