cURL
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." } } }
Restrict Features for a given role.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
A role to which features to be restricted.
Keys of the features to be restricted.
Restricts Features
Show child attributes
Was this page helpful?
Contact support