Commands › Inventory
inventory_rename_item
Rename an item
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "inventory_rename_item",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"itemId": "5d2d7a1d-0e8e-4f5d-a678-000000000000",
"name": "Welcome (v2)",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
itemIdUUID | yes | Item UUID. Also accepted as: itemUuid |
namestring | yes | New name. Also accepted as: newName |
Example response
{
"result": "OK",
"message": "Item renamed successfully"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- The item must already be loaded in the bot's inventory; list the folder first if the bot has only just logged in. If it is not, nothing happens but the call still answers OK.