cURL
curl --request POST \ --url https://hub.oxen.ai/api/repos/{namespace}/{repo_name}/workspaces \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "branch_name": "main", "name": "my_workspace", "workspace_id": "1234" } '
{ "status": "success", "status_message": "resource_created", "workspace": { "commit": { "author": "Bessie Oxington", "email": "[email protected]", "id": "a1757296b8a914d0c3a540129600dd57", "message": "moooooooo", "timestamp": "2024-12-06T01:04:06.406561Z" }, "id": "1234", "name": "my_workspace" } }
Workspaces enable the ability to work on the remote repository as if it were local.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"{{repo_namespace}}"
"{{repo_name}}"
"main"
"my_workspace"
"1234"
OK
"success"
"resource_created"
Show child attributes
"Bessie Oxington"
"[email protected]"
"a1757296b8a914d0c3a540129600dd57"
"moooooooo"
"2024-12-06T01:04:06.406561Z"