Commands › Groups
list_group_roles
Roles in a group
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "list_group_roles",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"groupuuid": "b3f87fed-0470-4a7e-b035-100000000000",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
groupuuidUUID | yes | Group UUID, or the exact name of a group the bot is in. Also accepted as: group, groupId, groupName |
Returns
| Field | Type | Description |
|---|---|---|
roles | string | One "uuid;name" line per role, separated by newlines — not an array. |
Example response
{
"result": "OK",
"roles": "00000000-0000-0000-0000-000000000000;Everyone\nc4e98afe-1581-4b8f-a146-200000000000;Officers"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.