workspaces
Create Workspace
HTTP API
- Endpoints
- Namespaces
- Repository
- Branches
- Commits
- Files
- Data Frames
- Workspaces
- Evaluations
namespaces
repos
branches
workspaces
fork
API Reference
workspaces
Create Workspace
Create Workspace
POST
/
api
/
repos
/
{namespace}
/
{repo_name}
/
workspaces
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"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
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"
}
}