Skip to main content

Fork a new variant branch

POST 

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

Forks a new CANDIDATE branch, copying a spec into a fresh, independent artifact lineage. The source can be this agent's own lineage (published, draft, or a specific artifact version), ANOTHER agent in the same application (agent, copying that agent’s published version or current draft), or a spec document supplied inline (spec, e.g. the agent.spec of an exported agent file — only the spec is imported; evals, routines, sub-agents and insights in the export are not). Never touches the agent's published pointer — a fork is purely additive until a later promote. Capped at 10 live variants per agent.

Request

Responses

The forked branch