Skip to main content
PUT
Upsert branch

Authorizations

Authorization
string
header
required

Path Parameters

repo
string<string>
required

The repository name

branch
string<string>
required

The URL-encoded branch name

Body

application/json
name
string
required

The branch name

Example:

"main"

head
string
required

An ID representing the branch HEAD. For example, a commit SHA.

Example:

"a94a8fe5ccb19ba61c4c0873d391e987982fbbd3"

syncTime
integer<int64>
required

A timestamp indicating when the branch was last synced

Example:

"1636558831870"

updateSequenceId
integer<int64>

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.

Example:

25

references
object[]

An array of flag references found on the branch

commitTime
integer<int64>

A timestamp of the current commit

Example:

"1636558831870"

Response

Action succeeded