Commands › Inventory
inventory_move_item
Move an item to another folder
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "inventory_move_item",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"itemId": "5d2d7a1d-0e8e-4f5d-a678-000000000000",
"targetFolder": "7c1e9b2a-4d3f-4a8b-9c6d-000000000000",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
itemIdUUID | yes | Item to move. Also accepted as: itemUuid |
targetFolderUUID | yes | Destination folder. Also accepted as: targetFolderUuid |
Example response
{
"result": "OK",
"item": {
"itemID": "5d2d7a1d-0e8e-4f5d-a678-000000000000",
"name": "Welcome"
}
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- Items only — folders cannot be moved. Nothing is checked, so wrong ids still answer OK.