Content Management
Edit video
Edit single video
Edit existing video
Edit an existing video using the following API call:
POST https://api.target-video.com/apiv3/video/edit/{VIDEO_ID}.json
Every request must send your API token in an Authorization: Bearer header — see API credentials. The video that is edited is the one in the URL; an id sent in the request body is ignored.
Parameters
Parameter name | Description | Required |
|---|---|---|
name | Video name | optional |
tags | Comma separated tags | optional |
clickthroughUrl | Clickthrough for the video | optional |
age_gate_id | Age gate for the video | optional |
publish | Valid date in | optional |
kill_date | Valid date in | optional |
rejected | Set this to | optional |
image | A valid URL to an image which will be used for video snapshot | optional |
monetize | Set this to | optional |
geo_on | Set to | optional |
geo | Comma-separated ISO 3166-1 alpha-2 country codes, e.g. | optional |
If you would like to add comScore tracking for the video make sure to include following data in the request:
Parameters
Parameter name | Description | Required |
|---|---|---|
ns_st_sn | comScore Content Season Number | optional |
ns_st_en | comScore Content Episode Number | optional |
ns_st_ge | comScore Content Genre | optional |
ns_st_ddt | comScore Content Digital Air Date | optional |
ns_st_tdt | comScore Content TV Airdate | optional |
ns_st_st | comScore Station Title | optional |
ns_st_pu | comScore Publisher Brand Name | optional |
ns_st_ce | comScore Content Complete Episode Flag | optional |
ns_user_gen | comScore User Generated Content | optional |
If you would like to enable custom targeting from DFP/GAM make sure to include the following params in the request:
Parameters
Parameter name | Description | Required |
|---|---|---|
CustomParam[key][] | Name of the parameter | optional |
CustomParam[value][] | Value of the parameter | yes, if key is provided |
Custom parameters are replaced, not merged: sending CustomParam removes the video’s existing ones first, and sending it empty removes them all.
If you would like to have chapters for the video include the following data in the request:
Parameters
Parameter name | Description | Required |
|---|---|---|
Chapter[timestamp][] | Timestamp when the chapter should begin | optional |
Chapter[title][] | Title of the chapter. This will be shown in the player | optional |
Send at least three chapters — fewer are ignored. The first must start at 00:00:00, and each must start at least 10 seconds after the previous one, or the request is rejected.
Examples
PHP
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.target-video.com/apiv3/video/edit/{VIDEO_ID}.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array('data[Video][id]' => 'VIDEO_ID','data[Video][name]' => '3 Sec Video - edit','data[Video][tags]' => 'aaa,bbb,ccc','data[Video][clickthroughUrl]' => ' ','data[Video][age_gate_id]' => '1','data[Video][publish]' => '30-07-2020','data[Video][kill_date]' => '00-00-0000','data[Video][rejected]' => '0','data[Video][image]' => '//cdn.target-video.com/uid/partners/12579/snapshot/540556.png','data[Video][monetize]' => '0','data[Video][pixels][impression]' => '','data[Video][pixels][viewable]' => '','data[Video][pixels][firstQuartile]' => '','data[Video][pixels][midpoint]' => '','data[Video][pixels][thirdQuartile]' => '','data[Video][pixels][complete]' => '','data[Video][pixels][clickthrough_url]' => '','data[Video][pixels][clickthrough]' => '','data[Video][geo_on]' => '1','data[Video][geo]' => 'AF,AX,DZ','data[Video][ns_st_sn]' => '','data[Video][ns_st_en]' => '','data[Video][ns_st_ge]' => '','data[Video][ns_st_ddt]' => '','data[Video][ns_st_tdt]' => '','data[Video][ns_st_st]' => '','data[Video][ns_st_pu]' => '','data[Video][ns_st_ce]' => '0','data[Video][ns_user_gen]' => '0','data[CustomParam][key][0]' => 'slot','data[CustomParam][value][0]' => 'pre-role','data[CustomParam][key][1]' => 'prod','data[CustomParam][value][1]' => 'opel','data[Video][partner_id]' => 'PARTNER_ID'),
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer YOUR_API_TOKEN"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Java
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("data[Video][id]", "VIDEO_ID")
.addFormDataPart("data[Video][name]", "3 Sec Video - edit")
.addFormDataPart("data[Video][tags]", "aaa,bbb,ccc")
.addFormDataPart("data[Video][clickthroughUrl]", " ")
.addFormDataPart("data[Video][age_gate_id]", "1")
.addFormDataPart("data[Video][publish]", "30-07-2020")
.addFormDataPart("data[Video][kill_date]", "00-00-0000")
.addFormDataPart("data[Video][rejected]", "0")
.addFormDataPart("data[Video][image]", "//cdn.target-video.com/uid/partners/12579/snapshot/540556.png")
.addFormDataPart("data[Video][monetize]", "0")
.addFormDataPart("data[Video][pixels][impression]", "")
.addFormDataPart("data[Video][pixels][viewable]", "")
.addFormDataPart("data[Video][pixels][firstQuartile]", "")
.addFormDataPart("data[Video][pixels][midpoint]", "")
.addFormDataPart("data[Video][pixels][thirdQuartile]", "")
.addFormDataPart("data[Video][pixels][complete]", "")
.addFormDataPart("data[Video][pixels][clickthrough_url]", "")
.addFormDataPart("data[Video][pixels][clickthrough]", "")
.addFormDataPart("data[Video][geo_on]", "1")
.addFormDataPart("data[Video][geo]", "AF,AX,DZ")
.addFormDataPart("data[Video][ns_st_sn]", "")
.addFormDataPart("data[Video][ns_st_en]", "")
.addFormDataPart("data[Video][ns_st_ge]", "")
.addFormDataPart("data[Video][ns_st_ddt]", "")
.addFormDataPart("data[Video][ns_st_tdt]", "")
.addFormDataPart("data[Video][ns_st_st]", "")
.addFormDataPart("data[Video][ns_st_pu]", "")
.addFormDataPart("data[Video][ns_st_ce]", "0")
.addFormDataPart("data[Video][ns_user_gen]", "0")
.addFormDataPart("data[CustomParam][key][]", "slot")
.addFormDataPart("data[CustomParam][value][]", "pre-role")
.addFormDataPart("data[CustomParam][key][]", "prod")
.addFormDataPart("data[CustomParam][value][]", "opel")
.addFormDataPart("data[Video][partner_id]", "PARTNER_ID")
.build();
Request request = new Request.Builder()
.url("https://api.target-video.com/apiv3/video/edit/{VIDEO_ID}.json")
.method("POST", body)
.addHeader("Authorization", "Bearer YOUR_API_TOKEN")
.build();
Response response = client.newCall(request).execute();
JavaScript
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.target-video.com',
'path': '/apiv3/video/edit/{VIDEO_ID}.json',
'headers': {
'Authorization': 'Bearer YOUR_API_TOKEN'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][id]\"\r\n\r\nVIDEO_ID\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][name]\"\r\n\r\n3 Sec Video - edit\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][tags]\"\r\n\r\naaa,bbb,ccc\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][clickthroughUrl]\"\r\n\r\n \r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][age_gate_id]\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][publish]\"\r\n\r\n30-07-2020\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][kill_date]\"\r\n\r\n00-00-0000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][rejected]\"\r\n\r\n0\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][image]\"\r\n\r\n//cdn.target-video.com/uid/partners/12579/snapshot/540556.png\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][monetize]\"\r\n\r\n0\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][pixels][impression]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][pixels][viewable]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][pixels][firstQuartile]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][pixels][midpoint]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][pixels][thirdQuartile]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][pixels][complete]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][pixels][clickthrough_url]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][pixels][clickthrough]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][geo_on]\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][geo]\"\r\n\r\nAF,AX,DZ\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][ns_st_sn]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][ns_st_en]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][ns_st_ge]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][ns_st_ddt]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][ns_st_tdt]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][ns_st_st]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][ns_st_pu]\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][ns_st_ce]\"\r\n\r\n0\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][ns_user_gen]\"\r\n\r\n0\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[CustomParam][key][]\"\r\n\r\nslot\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[CustomParam][value][]\"\r\n\r\npre-role\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[CustomParam][key][]\"\r\n\r\nprod\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[CustomParam][value][]\"\r\n\r\nopel\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"data[Video][partner_id]\"\r\n\r\nPARTNER_ID\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Python
import http.client
import mimetypes
conn = http.client.HTTPSConnection("api.target-video.com")
dataList = []
boundary = 'wL36Yn8afVp8Ag7AmP8qZ0SA4n1v9T'
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][id];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("VIDEO_ID")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][name];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("3 Sec Video - edit")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][tags];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("aaa,bbb,ccc")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][clickthroughUrl];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][age_gate_id];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("1")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][publish];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("30-07-2020")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][kill_date];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("00-00-0000")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][rejected];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("0")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][image];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("//cdn.target-video.com/uid/partners/12579/snapshot/540556.png")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][monetize];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("0")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][pixels][impression];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][pixels][viewable];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][pixels][firstQuartile];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][pixels][midpoint];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][pixels][thirdQuartile];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][pixels][complete];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][pixels][clickthrough_url];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][pixels][clickthrough];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][geo_on];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("1")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][geo];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("AF,AX,DZ")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][ns_st_sn];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][ns_st_en];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][ns_st_ge];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][ns_st_ddt];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][ns_st_tdt];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][ns_st_st];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][ns_st_pu];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][ns_st_ce];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("0")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][ns_user_gen];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("0")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[CustomParam][key][];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("slot")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[CustomParam][value][];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("pre-role")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[CustomParam][key][];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("prod")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[CustomParam][value][];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("opel")
dataList.append('--' + boundary)
dataList.append('Content-Disposition: form-data; name=data[Video][partner_id];')
dataList.append('Content-Type: {}'.format('multipart/form-data'))
dataList.append('')
dataList.append("PARTNER_ID")
dataList.append('--'+boundary+'--')
dataList.append('')
body = '\r\n'.join(dataList)
payload = body
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-type': 'multipart/form-data; boundary={}'.format(boundary)
}
conn.request("POST", "/apiv3/video/edit/{VIDEO_ID}.json", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Ruby
require "uri"
require "net/http"
url = URI("https://api.target-video.com/apiv3/video/edit/{VIDEO_ID}.json")
https = Net::HTTP.new(url.host, url.port);
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer YOUR_API_TOKEN"
form_data = [['data[Video][id]', 'VIDEO_ID'],['data[Video][name]', '3 Sec Video - edit'],['data[Video][tags]', 'aaa,bbb,ccc'],['data[Video][clickthroughUrl]', ' '],['data[Video][age_gate_id]', '1'],['data[Video][publish]', '30-07-2020'],['data[Video][kill_date]', '00-00-0000'],['data[Video][rejected]', '0'],['data[Video][image]', '//cdn.target-video.com/uid/partners/12579/snapshot/540556.png'],['data[Video][monetize]', '0'],['data[Video][pixels][impression]', ''],['data[Video][pixels][viewable]', ''],['data[Video][pixels][firstQuartile]', ''],['data[Video][pixels][midpoint]', ''],['data[Video][pixels][thirdQuartile]', ''],['data[Video][pixels][complete]', ''],['data[Video][pixels][clickthrough_url]', ''],['data[Video][pixels][clickthrough]', ''],['data[Video][geo_on]', '1'],['data[Video][geo]', 'AF,AX,DZ'],['data[Video][ns_st_sn]', ''],['data[Video][ns_st_en]', ''],['data[Video][ns_st_ge]', ''],['data[Video][ns_st_ddt]', ''],['data[Video][ns_st_tdt]', ''],['data[Video][ns_st_st]', ''],['data[Video][ns_st_pu]', ''],['data[Video][ns_st_ce]', '0'],['data[Video][ns_user_gen]', '0'],['data[CustomParam][key][]', 'slot'],['data[CustomParam][value][]', 'pre-role'],['data[CustomParam][key][]', 'prod'],['data[CustomParam][value][]', 'opel'],['data[Video][partner_id]', 'PARTNER_ID']]
request.set_form form_data, 'multipart/form-data'
response = https.request(request)
puts response.read_body
On success the response contains "status": true and the message Video has been saved. If no video exists with that ID, the request fails with HTTP 400.