Rename an agent branch
PATCHhttps://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
- 200
- 400
- 401
- 403
- 404
- 409
- 500
The renamed branch
The request body, query, or path failed validation. See validationErrors.
The API key or session is missing, expired, or malformed.
The caller is authenticated but not allowed to perform this operation.
Branch not found, not owned by this agent, or no access to its application
A branch with this name already exists
Unexpected server error.