Skip to main content
PATCH
/
accounts
/
suspend-user
Suspend user
curl --request PATCH \
  --url https://api.quiva.ai/accounts/suspend-user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "suspend": true
}
'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string<email>
required

User email

suspend
boolean
required

Set true to suspend, false to unsuspend

Response

User suspended/unsuspended successfully

message
string