Authorizations
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Body
application/json
UIDs that needs to deactivated.
Response
200 - application/json
Deactivated Users
curl --request DELETE \
  --url https://{appid}.api-{region}.cometchat.io/v3/users \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "uidsToDeactivate": [
    "<string>"
  ]
}'{
  "data": {
    "deactivatedUids": [
      "superhero2",
      "superhero3"
    ]
  }
}Deactivates users for the specified UIDs
curl --request DELETE \
  --url https://{appid}.api-{region}.cometchat.io/v3/users \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "uidsToDeactivate": [
    "<string>"
  ]
}'{
  "data": {
    "deactivatedUids": [
      "superhero2",
      "superhero3"
    ]
  }
}API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
UIDs that needs to deactivated.
Deactivated Users
Show child attributes
Was this page helpful?