Skip to content
LogoLogo

Rename, change the URL, or restore a Workspace

Rename, change the URL, or restore a Workspace

PATCH/api/v1/workspaces/{workspace_id}

Changes exactly one of name, slug, or archived. Renaming and URL changes require the workspace:manage capability; archived: false restores an archived Workspace and is the only mutation an archived Workspace accepts.

archived: true is rejected here — archiving is DELETE /api/v1/workspaces/{workspace_id}, which additionally requires an owner and recent authentication.

slug is the canonical Workspace URL segment. It must be unique and use lowercase letters, numbers, and interior hyphens only.

Path Parameters

workspace_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

If-MatchRequired
string

Entity tag containing the resource version last observed by the client.

Idempotency-KeyRequired
string·min 16·max 200

Opaque client-generated key for safely retrying this operation.

Request Body

application/json
name
string·min 1·max 100
slug
string·min 1·max 63

The unique canonical Workspace URL segment.

icon_url
string·max 2048

An HTTPS image URL. An empty string removes the icon.

archived
boolean

Only false is accepted, which unarchives the Workspace. Archiving is DELETE /api/v1/workspaces/{workspace_id}, which is owner-only and requires recent authentication.

Responses