versión 8.3.8

Back | 

WsProgram

URL

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

Parameters

Request

Updates an existing program

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_Program": {
      "programUuid": "a1s2d3f4",
      "title": "My New Title",
      "assetid": 33,
      "description": "My New Description",
      "date_start": "2014-03-02",
      "date_end": "2016-03-03",
      "isHidden": "0",
      "isPublished": "1",
      "youtubePublishable": "1",
      "sortnum": "5",
      "categories": [
        "200",
        "300"
      ],
      "metadatas": {
        "adVastUrl": "http:\/\/www.google.com",
        "adVastUrl2": "http:\/\/www.googleasdsad.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_Program": { "programUuid": "p5p28bx3", "title": "My New Updated Title", "description": "My New Updated Description", "date_start": "2014-03-02", "assetid": 33, "date_end": "2016-03-03", "isHidden": "0", "isPublished": "1", "youtubePublishable": "1", "sortnum": "5", "categories": [ "200", "300" ], "metadatas": { "adVastUrl": "http:\/\/www.google.com", "adVastUrl2": "http:\/\/www.googleasdsad.com" } } } }

Response

Response format

{
  "response": {
    "success": {
      "code": 882,
      "message": "Program added\/updated",
      "details": ""
    },
    "WsProgram": {
      "Program": {
        "class": "Program",
        "sortnum": 0,
        "type": "video",
        "dateStart": "2014-03-02T00:00:00Z",
        "dateEnd": "2016-03-03T00:00:00Z",
        "assetid": 33,
        "uuid": "p5p28bx3",
        "presentationid": 0,
        "isHidden": 0,
        "geoFilterId": 0,
        "youtubePublishable": 1,
        "referenceId": "sad",
        "hasGeoFilter": false,
        "thumbnailUrl": "",
        "posterUrl": "",
        "duration": null,
        "projectUUID": "a1s2d3f4",
        "asset": {
          "assetid": 33,
          "title": "",
          "datemod": "2014-08-20T20:34:27Z",
          "isActive": 1,
          "isHidden": 0,
          "geoFilterId": 0,
          "uuid": "aaaaaa",
          "isPublished": 1,
          "date_start": "2000-05-01T00:00:00Z",
          "date_end": "3015-05-01T00:00:00Z",
          "youtubePublishable": 1,
          "referenceId": "2",
          "thumbnailUrl": "\/thumbs\/aid\/w\/h\/t1408566867\/33.jpg",
          "thumbRel": "\/thumbs\/aid\/w\/h\/t1408566867\/33.jpg",
          "assetType": "video",
          "asset_type": "video",
          "assetFiles": [
            {
              "class": "AssetFile",
              "assetfileid": 1,
              "datemod": "2014-08-20T20:34:27Z",
              "isReferenceFile": 0,
              "setAsAssociatedFile": 0,
              "isSymLink": 0
            }
          ],
          "referenceFile": null,
          "rtmpSmil": "\/ws\/get_smilv2\/od\/rtmp\/tr_projectuuid_a1s2d3f4\/tr_programuuid_p5p28bx3\/33.smil",
          "associatedLinks": [
            
          ],
          "captions": [
            
          ],
          "AssociatedFiles": [
            
          ],
          "metadatas": [
            
          ],
          "folders": null
        },
        "Title": "My New Updated Title",
        "Description": "My New Updated Description",
        "metadatas": {
          "adVastUrl": {
            "value": "http:\/\/www.google.com",
            "displayName": "adVastUrl"
          },
          "adVastUrl2": {
            "value": "http:\/\/www.googleasdsad.com",
            "displayName": "adVastUrl2"
          }
        },
        "hasChapters": false,
        "vmapUrl": ""
      }
    }
  }
}