# Archive VOD File

API call format

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

Description

This call creates new meta data .

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": "Item was archived successfully",
 }
  • On failure an error will be returned with the right error code and description.

Example:

[Request] POST /broker/vod/archive/{<source_guid>}               //Use token autorization
[Request] POST /broker/private/vod/archive/{<source_guid>}               //Use token autorization
{
  "meta": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  }
}
[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": "Item was archived successfully",
}