Version 8.3.8

Back | 

WsAssetAssociatedLink

URL

de.piksel.tech/services/index.php?&mode=json
Use "request" param as post variable for submitting json/xml request payload for all POST requests.

Request Headers

Name

Parameters

  • assetId => AssetId of the asset for the link to be added to

    title => Title for the association.

    url =>The URL

Request

Adds a new associated link to an asset

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
    },
    "Ws_Asset_Associated_Link": {
      "assetId": "1",
      "title": "My Title",
      "url": "http:\/\/www.google.com"
    }
  }
}

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 }, "Ws_Asset_Associated_Link": { "assetId": "1", "title": "My Title", "url": "http:\/\/www.google.com" } } }

Response

Response format

{
  "response": {
    "success": {
      "code": 832,
      "message": "Associated link added\/updated",
      "details": ""
    },
    "WsAssetAssociatedLink": {
      "AssociatedLink": {
        "id": 3,
        "assetId": 1,
        "url": "http:\/\/google.com",
        "title": "My Title"
      }
    }
  }
}