Lifebots symbol
Lifebots.cloud
HTTP API
Commands › Groups

setrole

Add a member to a role

Usage

curl -X POST "https://api.lifebots.cloud/api/bot.html" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "setrole",
  "apikey": "YOUR_API_KEY",
  "botname": "Joe Resident",
  "secret": "bot-secret-123",
  "groupuuid": "b3f87fed-0470-4a7e-b035-100000000000",
  "roleuuid": "c4e98afe-1581-4b8f-a146-200000000000",
  "member": "a2e76fcd-9360-4f6d-a924-000000000000",
  "dataType": "json"
}'

Every request also needs apikey, botname and secret — see Authentication.

Parameters

NameRequiredDescription
groupuuid
UUID
yesGroup UUID. Group names are not accepted by this command.
Also accepted as: groupId
roleuuid
UUID
yesRole to add.
Also accepted as: roleId
member
UUID
yesMember's avatar UUID.
Also accepted as: memberId

Example response

{
  "result": "OK"
}

With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.

Good to know

  • Answers OK once sent. The bot needs the Assign Members power.
Lifebots symbol
Lifebots.cloud

Empowering Second Life experiences with intelligent bot automation and seamless group management solutions.

Product
Support
Company
Visit Us

© 2025 - 2026 LifeBots. Made with ❤️. All rights reserved.

LifeBots is not affiliated with Linden Research, Inc., or any of its affiliated entities or products, including, without limitation, Second Life (collectively, “Linden Lab”).

Initializing A New World of Second Life Bots...