cURL
curl --request POST \ --url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/workspaces/new_branch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "branch_name": "daisy-dev", "name": "daisy_workspace", "workspace_id": "4a7f05c3-1d0e-4f0e-8f9f-095a43b27b3f" } '
{ "status": "<string>", "status_message": "<string>", "workspace": { "commit": { "author": "<string>", "email": "<string>", "id": "<string>", "message": "<string>", "timestamp": "2023-11-07T05:31:56Z" }, "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
Workspace creation details. Creates the branch if it doesn't exist.
Workspace created with new branch
Show child attributes