Commands › Inventory
restore_from_trash
Take an item or folder back out of Trash
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "restore_from_trash",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"uuid": "5d2d7a1d-0e8e-4f5d-a678-000000000000",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
uuidUUID | yes | Item or folder UUID. Also accepted as: itemId |
Example response
{
"result": "OK",
"message": "Item restored from trash"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- Items go back to their usual system folder (Notecards, Objects…); folders go to the root.