v45

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-0114775543.6 KB
Agent Versioning - Branches

Create a branch

Fork a new branch from an existing branch. The source branch must have at least one committed revision. Branch names are unique per agent; the name Main is reserved for the default branch. Creating from a branch whose latest draft is still scanning returns 409 source_scanning.

post/agent/{id}/branches

Path parameters

idstring required

The agent ID.

Request body

sourceBranchIdstring required

Branch to fork from. Its head revision must exist.

namestring required

New branch name. Unique per agent among active branches. main is reserved.

Response

Branch created.

statusboolean

Example response

{
  "status": true
}