version 8.3.8

Back | 

WsRecycleAsset

URL

http://de.piksel.tech/ws/ws_recycle_asset/mode/json/apiv/5.0?method=put&
Use "request" param as post variable for submitting json/xml request payload for all PUT requests.

Parameters

  • TO RESTORE ASSET:
    assetid => asset id
  • restore => true

  • TO UPDATE assetRecycleBin:
    assetid => asset id
  • id => assetRecycleBin id
  • dateRecycled => date when asset was recycled
  • dateToDelete => date when asset to be deleted
  • dateDeleted => date when asset was deleted

Request

Restore an asset from recycle bin or update assetRecycleBin object

Request format

{
  "request": {
    "authentication": {
      "app_token": "7cd207c2-6808-11e3-b865-22000a8a28ea",
      "client_token": "d4c1b92c0acb102ba3e10015c5f061d1",
      "user_token": "f277cb9d46e45f67f44de949cdde110f"
    },
    "header": {
      "header_version": 1,
      "api_version": "5",
      "no_cache": true
    },
    "WsRecycleAsset": {
      "assetid": 1,
      "restore": true
    }
  }
}

Test Example

{ "request": { "authentication": { "app_token": "#app_token#", "client_token": "#client_token#", "user_token": "#user_token#" }, "header": { "header_version": 1, "api_version": "5", "no_cache": true }, "WsRecycleAsset": { "assetid": 1, "restore": true } } }

Response

Response format

{
  "response": {
    "success": {
      "code": 531,
      "message": "Asset Restored",
      "details": ""
    }
  }
}