Lifebots symbol
Lifebots.cloud
HTTP API
Commands › Inventory

inventory_to_prim

Copy an inventory item into an object's contents

Usage

curl -X POST "https://api.lifebots.cloud/api/bot.html" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "inventory_to_prim",
  "apikey": "YOUR_API_KEY",
  "botname": "Joe Resident",
  "secret": "bot-secret-123",
  "inventory": "5d2d7a1d-0e8e-4f5d-a678-000000000000",
  "prim": "9f8e7d6c-5b4a-4321-8fed-000000000000",
  "dataType": "json"
}'

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

Parameters

NameRequiredDescription
inventory
UUID
yesInventory item to put in.
Also accepted as: itemId
prim
UUID
yesObject (prim) in the bot's region.
Also accepted as: uuid

Example response

{
  "success": true,
  "result": "OK",
  "resulttext": "Item added to prim inventory"
}

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

Good to know

  • The object must have streamed in to the bot. OK means it was sent; the object's owner permissions may still refuse it.
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...