latestOpenAPI 3.1.02026-08-0823354.5 KB

7e9372f17040

Branches

Create a branch

Create a new branch, or rename and confirm the default branch.

post/v2/project/branches/create

Headers

gt-api-version'2025-01-01.v0' | '2025-11-03.v1' | '2026-02-18.v1' | '2026-03-06.v1'

API version. Defaults to the earliest supported version. Latest is 2026-03-06.v1.

gt-project-idstring

Target project ID. Required when authenticating with an organization API key.

Request body

branchNamestring required
defaultBranchboolean

Response

Created branch.