
We’ve released a set of HTTP API updates giving your bots more control and visibility over the regions they manage, plus handy new utilities for working with avatar names.
What’s new:
- New
sim_managersaction - New
sim_info_currentaction statusnow reports estate manager rights- New
display_namesaction, for bulk display name lookups - New
keys2namesaction for bulk key2name lookups
New sim_managers action
The new sim_managers action allows your bot to add and remove estate managers of the sim. Simply specify the avatar UUID and the operation (add or remove), and the optional all_estates parameter lets you apply the operation to all estates available to the bot in one call.
New sim_info_current action
We’ve also added sim_info_current, which returns the settings and access info of the region the bot is currently in. The response includes a structured region object with everything you might want to know about the sim: the estate owner, the list of estate managers (and whether your bot is one of them), public access settings, allowed and banned residents, and region flags like voice chat, damage, flying, terraforming, scripts and more.
status now includes estate manager rights
The status action now returns a new field, can_manage_estate, which tells you whether the bot can manage the current estate. This makes it easy to verify your bot’s permissions before performing estate operations.
New display_names action
We’ve added a new utility action: display_names. It returns avatar Second Life display names in bulk. Just pass a comma-separated list of UUIDs and get the corresponding names back in a single call, no need to resolve them one by one. An example response can be found below.
{
"action":"display_names",
"names":{
"4d9ce772-d3ee-4cce-9555-bfb06ffcb228":"Alex",
"417732f0-a100-4e2d-a9bf-e381cfd12c3a":"SmartBots Cute Guide"
},
"result":"OK"
}
New keys2names action
We’ve also added a new utility action: keys2names. It works the same way as display_names, and returns names in bulk. An example response can be found below.
{
"action":"keys2names",
"names":{
"4d9ce772-d3ee-4cce-9555-bfb06ffcb228":"Alexander Pixels",
"417732f0-a100-4e2d-a9bf-e381cfd12c3a":"cuteguide Resident"
},
"result":"OK"
}
If you have any questions about these new commands, you can always chat in our dedicated #dev-support Discord channel.
Happy scripting!
Discussion
0No comments yet. Start the conversation.
Login to your SmartBots account to post a comment