Commands › Groups
group_visibility
Show the group in the profile, and accept or reject its notices
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "group_visibility",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"groupuuid": "b3f87fed-0470-4a7e-b035-100000000000",
"profile": "1",
"notices": "accept",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
groupuuidUUID | yes | Group UUID. Group names are not accepted by this command. Also accepted as: groupId, group |
profileflag | yes | 1 to list the group in the bot's profile, 0 to hide it. |
noticesstring | no | accept or reject. Any other value (including 0) accepts. |
Example response
{
"result": "OK"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- notices takes the words accept / reject — 0 does not turn notices off.