# VOD Encode or Re-encode Sources

API call format

POST /broker/vod/encode/{guid}               //Use token autorization
POST /broker/vod/private/encode/{guid}       //Use Api Key

Description

This call re-encode existing source by specifying it's source GUID..

Precondition:

  • Authorization token/Api key is needed.
  • Mandatory elements (should be specified):
    • <source_guid> - valid source guid. Take a specific source guid using Vod list API call.

Postcondition

  • On success response code should be 200
  • On success the following JSON data is expected:
 {
  "status": true,
  "data": "Success."
 }
  • On failure an error will be returned with the right error code and description.

Example:

[Request] POST https://<base_api_url>/broker/vod/encode/<source_guid>               //use GET /broker/vod/list to find a specific guid
[Request] POST https://<base_api_url>/broker/private/vod/encode/<source_guid>       //use GET /broker/vod/list to find a specific guid
[Request Headers] {"Content-Type":"application/json","Accept":"application/json","Authorization":"<IdToken>"} //Use token autorization
[Request Headers] {"Content-Type":"application/json","Accept":"application/json","X-Api-Key":"<api_key>"}     //Use Api Key

[Response] 200
[Response Headers] {"Content-Type":"application/json","Content-Length":["48"],"Connection":["keep-alive"],...}
[Response] 
 {
  "status": true,
  "data": "Success."
 }