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": "ox@oxen.ai", "id": "a1757296b8a914d0c3a540129600dd57", "message": "moooooooo", "timestamp": "2024-12-06T01:04:06.406561Z" }, "id": "1234", "name": "my_workspace" } }
Create Workspace
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"{{repo_namespace}}"
"{{repo_name}}"
OK
The response is of type object.
object