Replace video

Use this endpoint to add video to your account.

Endpoint
apiv2/videos/replace/.json

This method is type of POST and will not receive any GET parameters.

Parameters:

Name Type Description
data[Video][id] *required integer ID of the video you want to replace
data[Video][mp4] *required string Url to video file
Example
<?php
require_once('lib/BridApi.php');
try {
        $post = array(
        'data[Video][id]'=>'12345',
        'data[Video][mp4]'=>'http://ds.serving-sys.com/BurstingRes/Site-87419/Type-16/76f68158-002c-44a9-8915-e0578663e2ed.mp4');
        $return = $api->post(['videos', 'replace'], $post);
        print_r($return);
} 
catch(Exception $e) {
    echo $e->getMessage();
}
?>

BridApi.php is a small library we provide in our git repository which allows you to quick-start your implementation so we advise you to use it. These examples are made with this library in mind. Make sure to substitute and use your own authorization token and video data when trying out these examples.