Create a new workspace

View as Markdown
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_propagationbooleanOptionalDefaults to true

If true, wait for Admin role to propagate before returning (default: true). Set to false for bulk operations.

Request

This endpoint expects an object.
namestringRequiredformat: "^[a-z](?!.*--)[a-z0-9\-@.+_]{1,62}(?<!-)$"

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).

descriptionstringOptional
Optional description of the workspace

Response

Successful Response
idstring

System-generated UUID

namestring

Workspace name (user-provided)

created_atdatetime
Timestamp of workspace creation
updated_atdatetime
Timestamp of last workspace update
descriptionstring
Optional description
created_bystring
Principal id for workspace creator
updated_bystring
Principal id for last workspace update

Errors

422
Unprocessable Entity Error