PUT
/
api
/
repos
/
{namespace}
/
{repo_name}
/
branches
/
{branch_name}
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

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

Path Parameters

namespace
string
required

(Required)

Example:

"ox"

repo_name
string
required
Example:

"test-repo"

branch_name
string
required
Example:

"{{new_branch_name}}"

Body

application/json
commit_id
string
Example:

"{{last_commit_id}}"

Response

200 - text/plain
OK

The response is of type file.