Version 8.3.8

Back | 

WsAsset

URL

http://de.piksel.tech/ws/ws_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

  • assetid=>Asset id of the asset to be updated
    title=>asset title
    description=>asset description
    tags=>asset tags/keywords
    isRemoteSource=>Determines if the source file is remote
    isPublished=>isPublished flag (true/false) for the asset
    isHidden=>isHidden flag (true/false) for the asset
    date_start=>start date for the asset. Needs to be in T-Z format. All dates must be in UTC
    date_end=>end date for the asset. Needs to be in T-Z format. All dates must be in UTC
    metadatas=>array of metdatatas to be set for the given account using metanme as the key
    youtubePublishable=> enable the asset to be youtube publishable
    geoFilterId=>Geo security filter to be set for the givenm asset

    foldets => Array of folderids with which the asset needs to be associated

Request

Update asset info including metdatas,folder,title,description,tags (keywords),geo filter,start date,end date

Request format

{
  "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": {
      "assetid": 980457,
      "title": "title",
      "description": "description",
      "date_start": "2014-03-05T13:15:30Z",
      "date_end": "2024-11-05T13:15:30Z",
      "defaultThumb": 3388204,
      "posterThumb": "32",
      "metadatas": {
        "metaname1": "metaname1value"
      },
      "isHidden": 1,
      "isPublished": 1,
      "youtubePublishable": true,
      "tags": "",
      "generate_thumbnail_count": 5,
      "referenceId": "dcsddsvdv",
      "geoFilterId": 500,
      "folders": [
        
      ]
    }
  }
}

Test Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  "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": {
      "assetid": 980457,
      "title": "title",
      "description": "description",
      "date_start": "2014-03-05T13:15:30Z",
      "date_end": "2024-11-05T13:15:30Z",
      "defaultThumb": 3388204,
      "posterThumb": "32",
      "metadatas": {
        "metaname1": "metaname1value"
      },
      "isHidden": 1,
      "isPublished": 1,
      "youtubePublishable": true,
      "tags": "",
      "referenceId": "dcsddsvdv",
      "geoFilterId": 500,
      "folders": [
        "42",
        "85"
      ]
    }
  }
}
X

Response

Response format

{
  "response": {
    "success": {
      "code": 205,
      "message": "AssetFound",
      "details": ""
    },
    "updateMediaAssetResponse": {
      "assetid": 980457,
      "title": "title",
      "dateadd": "2012-04-30T17: 52: 41Z",
      "datemod": "2012-04-30T17: 55: 25Z",
      "defaultThumb": "3388204",
      "description": "description",
      "tags": "",
      "isActive": 1,
      "isHidden": 0,
      "posterThumb": "32",
      "geoFilterId": 0,
      "uuid": "1a747376",
      "isPublished": 1,
      "date_start": "2014-03-05T13:15:30Z",
      "date_end": "2024-11-05T13:15:30Z",
      "youtubePublishable": 1,
      "thumbnailUrl": "http: \/\/player-qa.multicastmedia.com\/thumbs\/aid\/w\/h\/t1335808525\/980457.jpg",
      "thumbRel": "\/thumbs\/aid\/w\/h\/t1335808525\/980457.jpg",
      "assetType": "video",
      "asset_type": "video",
      "assetFiles": [
        
      ],
      "m3u8iPadURL": "",
      "m3u8iPhoneURL": "",
      "m3u8AndroidURL": "",
      "httpSmil": "",
      "hdSmil": "",
      "rtmpSmil": "",
      "associatedLinks": [
        
      ],
      "captions": [
        
      ],
      "AssociatedFiles": [
        
      ],
      "metadatas": {
        "metaname1": {
          "0": "",
          "value": "metanme1value",
          "type": "text"
        }
      },
      "folders": [
        "42",
        "85"
      ]
    }
  }
}