## 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 ``` ### Body Parameters - `suspended: optional boolean` - `userId: optional string` ### Example ```http curl https://app.gitpod.io/api/gitpod.v1.UserService/SetSuspended \ -H 'Content-Type: application/json' \ -H "Authorization: Bearer $GITPOD_API_KEY" \ -d '{}' ``` #### Response ```json {} ```