Update Workspace

Rename a workspace.

Rename a workspace. The response is the updated workspace.

POST /v1/organizations/workspaces/:workspace_id

Path parameters

workspace_idstringrequired

The workspace's ID.

Body

namestringrequired

The workspace name, 1 to 255 characters. Leading and trailing spaces are removed. Default is reserved for the Default Workspace, and no two workspaces that aren't archived share a name (both ignore case).

Any other field is rejected with 400.

Response

(object)Workspaceoptional

The updated [workspace object](/api-reference/admin/workspaces#the- workspace-object).

Errors

StatusReason
400The name is invalid or Default, or the workspace is the Default Workspace or archived.
404No workspace with this ID exists in your organization.
409Another workspace that isn't archived already has this name.