Upsert branch

Create a new branch if it doesn't exist, or update the branch if it already exists.

Path parameters

repostringRequired
The repository name
branchstringRequired

The URL-encoded branch name

Headers

AuthorizationstringRequired

Request

This endpoint expects an object.
namestringRequired
The branch name
headstringRequired
An ID representing the branch HEAD. For example, a commit SHA.
syncTimelongRequired
A timestamp indicating when the branch was last synced
updateSequenceIdlongOptional
An optional ID used to prevent older data from overwriting newer data. If no sequence ID is included, the newly submitted data will always be saved.
referenceslist of objectsOptional
An array of flag references found on the branch
commitTimelongOptional
A timestamp of the current commit

Errors