Skip to content

Create Workspace

POST /workspaces

organization_id in the body is advisory: only an operator may name another tenant, and anyone else naming one is refused rather than silently redirected (I-22).

FieldTypeNotes
slugstringrequiredmin length 2 max length 80
namestringrequiredmin length 1 max length 200
organization_idstring (uuid) | nulloptional—
is_org_defaultbooleanoptionalDefault false.
settingsobject | nulloptional—
StatusDescriptionBody
201Successful ResponseWorkspaceView
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/workspaces \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"slug": "string",
"name": "string"
}'
FieldTypeNotes
idstring (uuid)required—
organization_idstring (uuid)required—
slugstringrequired—
namestringrequired—
is_activebooleanrequired—
is_org_defaultbooleanrequired—
sandbox_full_network_allowedbooleanrequired—
settingsobjectrequired—
created_atstring (date-time)required—
updated_atstring (date-time)required—