API Reference › Registered Groups
Add Member to Role
PUT
/groups/{group_id}/member/{member_id}/roleGive a member a role. The bot needs the Assign Members power.
Scopewrite:groups
Groups the user registered on LifeBots — on their own bot or a SharedBot — acted on through the bot that runs each group. Commands fail with GROUP_NOT_ACTIVE unless the group's status is running. For any group the user's own bot is in, registered or not, use Bots — Group Moderation.
Usage
curl -X PUT "https://api.lifebots.cloud/api/v1/groups/$GROUP_ID/member/$MEMBER_ID/role" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"roleuuid": "c3e5a1f9-8b72-4d06-9e4a-1f2b3c4d5e6f"
}'Path parameters
| Name | Type | Description |
|---|---|---|
group_id | UUID | Group UUID. |
member_id | UUID | Avatar UUID of a group member. |
Body (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
roleuuid | UUID | yes | Role to add. |
Example response
{
"success": true,
"data": {
"result": "OK",
"action": "setrole"
},
"meta": {
"timestamp": "2026-10-02T12:00:00.000Z",
"version": "1.0"
}
}OK means the request was sent to Second Life; it is not confirmed.
Always check success; for commands the bot carries out, also check data.result. See Responses & errors.