Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:sidebar:remoteapi:apiref:account:trash [20/05/2015 12:13]
mast
en:sidebar:remoteapi:apiref:account:trash [20/05/2015 14:13]
Line 1: Line 1:
-{{indexmenu_n>​15}} 
-====== 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: 
-<code javascript>​ 
-svc=account/​trash&​params={"​callMode":<​text>,​ 
-                          "​guids":​[<​text>​]} 
-</​code> ​ 
  
-===== 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 javascript>​ 
-{ 
-    "​code":<​uint>,​ 
-    "​items":​ [ 
-                { 
-                    "​guid":<​text>, ​     /* guid */ 
-                    "​name":<​text>, ​     /* item name */ 
-                    "​tm":<​uint>, ​       /* time if deletion */ 
-                    "​type":<​text> ​      /* type (ex. "​avl_resource"​) */ 
-                }, 
-                ... 
-    ] 
-} 
-</​code>​ 
- 
-After restore callmode: 
-<code javascript>​ 
-{ 
-    "​code":<​uint>,​ 
-    "​items":​ [ 
-                { 
-                    "​name":<​text>, ​       /* item name */ 
-                    "​result":<​bool>, ​     /* result: 1 - success, 0 - failure */ 
-                    "​type":<​text> ​        /* item type */ 
-                }, 
-                ... 
-    ] 
-} 
-</​code>​ 
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam