Create a new workspace
Create a new workspace.
The creator is automatically granted Admin role on the workspace.
By default, this endpoint waits for the Admin role to propagate before returning.
Use `wait_role_propagation=false` to skip waiting (useful for bulk operations).
Example:
```
POST /apis/entities/v2/workspaces
{
"name": "ml-team",
"description": "Machine Learning Team workspace"
}
```
Query parameters
wait_role_propagation
If true, wait for Admin role to propagate before returning (default: true). Set to false for bulk operations.
Request
This endpoint expects an object.
name
Workspace name (unique identifier). Name must start with a lowercase letter, be 2-63 characters, and contain only lowercase letters, digits, and hyphens (no consecutive hyphens, cannot end with a hyphen).
description
Optional description of the workspace
Response
Successful Response
id
System-generated UUID
name
Workspace name (user-provided)
created_at
Timestamp of workspace creation
updated_at
Timestamp of last workspace update
description
Optional description
created_by
Principal id for workspace creator
updated_by
Principal id for last workspace update
Errors
422
Unprocessable Entity Error