---
title: "Stop an account switching its workspace role (admins only)."
method: DELETE
path: "/admin/users/{userId}/workspace-role-switch"
tags: ["Admin"]
---

# Stop an account switching its workspace role (admins only).

`DELETE /admin/users/{userId}/workspace-role-switch`

## Request

- Base URL: `https://docs.sleeperhit.studio/api/v1`
- URL: `https://docs.sleeperhit.studio/api/v1/admin/users/{userId}/workspace-role-switch`
- Auth: HTTP bearer

The account keeps the role it has now and can no longer switch it. Idempotent. Audited. Scope: `account:write`. Free.

## Response `200`

Switching is off for the account.

- WorkspaceRoleSwitchChange
  - `userId` string, required
  - `enabled` boolean, required
  - `changed` boolean, required: False when it already was that way: nothing was recorded.

## Other responses

- `401`: Missing, malformed, revoked, or expired API key.
- `403`: API key is valid but lacks the scope, is blocked by IP allowlist, or the account is disabled.
- `429`: Rate limit for this API key + IP + route family was exceeded.
- `500`: The API failed unexpectedly. Safe to retry with the same Idempotency-Key.

---

[API](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api.md) · [All operations](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api/revisions/4534f5d25540?raw)
