Creates a new user role
Documentation Index
Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
| Item | Constraint | Notes |
|---|---|---|
| Role UID | 100 characters, alpha-dash (a-z, 0-9, -, _) | CometChat forces the UID to lowercase |
| Role name | 100 characters (UTF8mb4) | Supports all languages and emojis |
| Role description | 255 characters (UTF8mb4) | Describe the role’s purpose and permissions |
| Metadata | No limit | Store additional role configuration as JSON key-value pairs |
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
A unique identifier for the role.
Friendly name of the role.
Description of the role.
Addition information about the role as JSON.
Role settings that is used for restricting list users/send message. Possible values for listUsers & sendMessagesTo are all and friendsOnly
Created a new Role