---
title: "Suspend user"
method: PATCH
path: "/accounts/suspend-user"
tags: ["User Management"]
---

# Suspend user

`PATCH /accounts/suspend-user`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/suspend-user`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/suspend-user/patch.ts> (a function with typed inputs; its response is checked against the schema)

Suspends or unsuspends a user in an account. Suspended users have no access to any of the resources and services associated with the account

## Request body

- object
  - `email` string, email, required: User email
  - `suspend` boolean, required: Set true to suspend, false to unsuspend

## Response `200`

User suspended/unsuspended successfully

- SuccessResponse
  - `message` string

## Other responses

- `400`: Bad request
- `401`: Unauthorized

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
