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": "development" } '
{ "status": "<string>", "status_message": "<string>", "branch": { "commit_id": "<string>", "name": "<string>" }, "oxen_version": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Namespace of the repository
Name of the repository
Branch creation details. Can be created from another branch or a commit ID.
Branch created
Show child attributes