POST
/
api
/
repos
/
{namespace}
/
{repo_name}
/
branches
curl --request POST \
  --url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/branches \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from_name": "main",
  "new_name": "my_branch"
}'
""

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"

Body

application/json
from_name
string
Example:

"main"

new_name
string
Example:

"my_branch"

Response

200 - text/plain
OK

The response is of type file.