Update a workspace
/v1/workspaces/{slug}Update a workspace.
Changes the workspace's name, description and default routing config. name is changed only when sent; description and default_routing_config_slug are replaced on every update, so leaving one out clears it. The slug cannot be changed.
Requires workspace admin access: an organization owner or admin, an admin of the workspace, an organization-scoped va_ key with the admin role, or a va_ key scoped to this workspace with the admin role. Errors: 403 without it; 404 when the workspace does not exist.
Authorization
AuthorizationBearer va_A platform API key (
va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.
Path parameters
slugstringrequiredthe workspace's slug
Query parameters
organizationstringrequiredthe slug of the organization the workspace belongs to
Request body application/json
the new values
namestringA new display name; omit to keep the current one.
descriptionstringThe description; omit or send null to clear it.
default_routing_config_slugstringThe routing config the dashboard should select by default for this workspace; omit or send null to clear it.
Responses
idstring<uuid>The workspace's id (UUID), used as
workspace_idelsewhere in the API.organizationstringThe slug of the organization the workspace belongs to.
slugstringThe workspace's slug, unique within the organization, used in workspace URLs.
namestringThe workspace's display name.
descriptionstringA description of the workspace; absent when none was given.
default_routing_config_slugstringThe routing config the dashboard selects by default for this workspace; absent when none is set.
created_atstring<date-time>When the workspace was created (ISO 8601 date-time).
updated_atstring<date-time>When the workspace was last changed (ISO 8601 date-time).