version 8.3.8

Back | 

WsAssetFile

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

Request

Adds a new assetfile 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
    },
    "WsAssetFile": {
      
    }
  }
}

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 }, "WsAssetFile": { "assetUuid": "myuuid", "filename": "mynameonftp.mp4" } } }

Response

Response format

{
  "response": {
    "success": {
      "code": null,
      "message": "",
      "details": ""
    },
    "WsAssetFile": {
      "assetfileid": 0,
      "assetid": 0,
      "filename": null,
      "bitrate": null,
      "datemod": null,
      "encodeid": 0,
      "type": null,
      "path": null,
      "duration": 0,
      "videoBitrate": 0,
      "audioBitrate": 0,
      "videoWidth": 0,
      "videoHeight": 0,
      "codec": null,
      "codecParameters": null,
      "filesize": 0,
      "assetFileTypeid": 0,
      "isDeleted": 0,
      "isReferenceFile": 0,
      "setAsAssociatedFile": 0,
      "isSymLink": 0
    }
  }
}