version 8.3.8

Back | 

WsRecycleAsset

Returns a recycled asset or list of recycled assets for an account

URL Format

/ws/ws_recycle_asset/api/{app_token}/mode/json/apiv/5/assetid/{assetId}

Parameters

Name Req Type Description
app_token string The api token for the given account. You can find the api token when navigating through account->api accounts
apiv integer The api version; only version 5 supported.
assetid string The asset id of a given asset.

Request Headers

Name

Possible Responses

  • 205 Asset Found
  • 700 No Asset Found
  • 304 Assets Found
  • 701 No Assets Found
  • 102 Invalid app token
  • 659 Invalid Client
  • 303 Invalid Asset ID
  • 637 Invalid Asset

Example Response

{
  "response": {
    "success": {
      "code": 305,
      "message": "Assets found",
      "details": "Assets in recycle bin"
    },
    "WsRecycleAsset": {
      "recycledAssets": [
        {
          "id": 114,
          "assetid": 1035841,
          "dateRecycled": 1388781182,
          "dateToDelete": 1388781182,
          "dateDeleted": 0,
          "createTime": "2014-01-03T20:33:02Z",
          "updateTime": "2014-01-03T20:33:02Z"
        }
      ]
    }
  }
}