cURL
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" }'
""
Get a branch if it exists, create a new one if not
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
(Required)
"ox"
"test-repo"
OK
The response is of type file.
file