Upsert branch
Create a new branch if it doesn’t exist, or update the branch if it already exists.
Path parameters
repo
The repository name
branch
The URL-encoded branch name
Headers
Authorization
Request
This endpoint expects an object.
name
The branch name
head
An ID representing the branch HEAD. For example, a commit SHA.
syncTime
A timestamp indicating when the branch was last synced
updateSequenceId
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.
references
An array of flag references found on the branch
commitTime
A timestamp of the current commit