Commands › Objects
inworld_prim_take
Take or copy an object into the bot's inventory
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "inworld_prim_take",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"uuid": "9f8e7d6c-5b4a-4321-8fed-000000000000",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
uuidUUID | yes | Object in the bot's region. |
operationstring | no | take or copy. Default: take |
folderUUID | no | Inventory folder to put it in. Default: Objects. |
Example response
{
"success": true,
"result": "OK",
"resulttext": "Prim take requested"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- There is no delete — any value other than copy takes the object.
- OK means the request was sent; Second Life refuses it if the bot lacks permission.