Skip to content
LogoLogo

Switch the current session's Workspace

Switch the current session's Workspace

PUT/api/v1/auth/session/workspace

Revokes the current browser session and creates a new one scoped to a different Workspace the caller actively belongs to, rotating the bearer and CSRF secrets. There is no in-place reauthorization of the existing session onto a new scope.

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.

Request Body

application/json
workspace_idRequired
string <uuid>

Opaque Assign-owned UUIDv7 identifier. Clients must not derive meaning from it.

Example0198ac5e-f9b7-7000-8000-000000000001

Responses