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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespace
string
required
repo_name
string
required

Body

application/json
branch_name
string
name
string
workspace_id
string

Response

200 - application/json
OK
status
string
status_message
string
workspace
object