Skip to main content
PUT
/
api
/
repos
/
{namespace}
/
{repo_name}
/
branches
/
{branch_name}
Update branch
curl --request PUT \
  --url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/branches/{branch_name} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "commit_id": "{{last_commit_id}}"
}'
""

Authorizations

Authorization
string
header
required

Path Parameters

namespace
string
required
Example:
repo_name
string
required
Example:
branch_name
string
required
Example:

Body

application/json
commit_id
string
Example:

Response

200 - text/plain