Skip to main content
PUT
Update a branch to a new commit

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespace
string
required

Namespace of the repository

repo_name
string
required

Name of the repository

branch_name
string
required

Name of the branch to update

Body

application/json

The commit ID to update the branch head to, and optionally the head the caller read, which the branch must still be at.

commit_id
string
default:""
expected_commit_id
string | null

The head the caller read before deciding to move the branch. When set, the server moves the branch only if it is still there, and refuses with HTTP 409 otherwise.

Response

Branch updated

status
string
required
status_message
string
required
branch
object
required
oxen_version
string | null