Skip to main content

Discard a variant branch

DELETE 

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

Abandons a branch: flips it to DISCARDED. The artifact and its version history are retained — nothing is deleted, only the lifecycle status changes. Rejects discarding the MAIN branch; promoting a variant over MAIN is the only supported way to retire a MAIN line.

Request

Responses

The branch was discarded