---
title: "SetSuspended"
method: POST
path: "/gitpod.v1.UserService/SetSuspended"
tags: ["gitpod.v1.UserService"]
---

# SetSuspended

`POST /gitpod.v1.UserService/SetSuspended`

Sets whether a user account is suspended.

 Use this method to:
 - Suspend problematic users
 - Reactivate suspended accounts
 - Manage user access

 ### Examples

 - Suspend user:

   Suspends a user account.

   ```yaml
   userId: "f53d2330-3795-4c5d-a1f3-453121af9c60"
   suspended: true
   ```

 - Reactivate user:

   Removes suspension from a user account.

   ```yaml
   userId: "f53d2330-3795-4c5d-a1f3-453121af9c60"
   suspended: false
   ```

## Request body

- GitpodV1SetSuspendedRequest
  - `suspended` boolean
  - `userId` string, uuid

## Response `200`

Success

- GitpodV1SetSuspendedResponse

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
