The
spaces client methods are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.Key Capabilities
- List spaces you have access to within an organization
- Retrieve space details by ID
- Create new spaces within an organization
- Update a space’s name or description
- Delete spaces and all their resources
- Add or remove users (space memberships)
List Spaces
List all spaces you have access to, with optional filtering by organization or name.Create a Space
Create a new space within an organization. Space names must be unique within the target organization.Get a Space
Retrieve a specific space by name or ID.Update a Space
Update an existing space’s name or description. At least one ofname or description must be provided.
Delete a Space
Add a User to a Space
The
spaces.add_user method is currently in ALPHA. The API may change without notice. A one-time warning is emitted on first use.- Users with an
annotatoraccount role can only be assigned theannotatorpredefined space role. - Users with a non-annotator account role cannot be assigned the
annotatorpredefined space role.
ROLE_BINDING_CREATE permission (for custom roles).
Remove a User from a Space
The
spaces.remove_user method is currently in ALPHA. The API may change without notice. A one-time warning is emitted on first use.ROLE_BINDING_DELETE permission (RBAC).