Skip to main content
POST
/
roles
/
{role}
/
restrictedfeatures
Restrict Features
curl --request POST \
  --url https://{appid}.api-{region}.cometchat.io/v3/roles/{role}/restrictedfeatures \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "featuresToRestrict": ""
}'
{
  "data": {
    "u.listUsers": {
      "success": true,
      "message": "The feature u.listUsers has been restricted successfully."
    }
  }
}

Authorizations

apikey
string
header
required

API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).

Path Parameters

role
string
required

A role to which features to be restricted.

Body

application/json
featuresToRestrict
string[]
required

Keys of the features to be restricted.

Response

200 - application/json

Restricts Features

data
object