Unassign a Workspace

<Info icon="fa-light fa-lock" className="permission-callout"> <div className="permission-callout__header"><span className="permission-callout__title"><span className="permission-callout__label">Required permissions</span> <span className="fern-docs-badge small blue subtle rounded-full permission-callout__beta">Beta</span></span> <span className="permission-callout__learn-more">[Learn more](/developers/api-guidelines/permissions#how-permissions-work)</span></div> `User.Workspace` + `Remove` <div className="permission-callout__roles"><span className="permission-callout__roles-label">Roles:</span> <Badge intent="info">Administrator</Badge></div> </Info> Unassign a Workspace from a user. - If the user is deleted from their default Workspace, the next active Workspace is assigned as the default Workspace. - **SuperAdmins** can't be removed unless you're logged in to the main organization. <Warning> You must have **Administrator** access in the requested Workspace to remove users. </Warning>

Authentication

AuthorizationBearer

An auth_token should be provided to authenticate a session.

To obtain an auth_token, see the /api/v1/authenticate POST request.

Path parameters

user_iddoubleRequired
User ID
workspace_iddoubleRequired
Numerical ID of a Workspace

Response

Successfully unassigned the Workspace

Errors

403
Forbidden Error
404
Not Found Error