Trash actions: list and restore

From your top-account you can use account/trash command in order to list trash content or/and restore items from trash:

svc=account/trash&params={"callMode":<text>,
                          "guids":[<text>]}

Parameters

Param Description
callMode action: list, restore
guids item guids for restoring
(actual for restore callmode)

:!: Attention: deleted item cannot be restored earlier than 20 mins of being in trash bin.

Response

While listing trash bin items:

{
    "code":<uint>,
    "items": [
                {
                    "guid":<text>,      /* guid */
                    "name":<text>,      /* item name */
                    "tm":<uint>,        /* time if deletion */
                    "type":<text>       /* type (ex. "avl_resource") */
                },
                ...
    ]
}

After restore callmode:

{
    "code":<uint>,
    "items": [
                {
                    "name":<text>,        /* item name */
                    "result":<bool>,      /* result: 1 - success, 0 - failure */
                    "type":<text>         /* item type */
                },
                ...
    ]
}
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam