Edit playlist

Use this endpoint to edit specific playlist under your site.


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


Name Type Description
data[Playlist][partner_id] *required integer Partner id
data[Playlist][id] *required integer Playlist id
data[Playlist][name] *required string Playlist name
data[Video][ids] *required string Video ids to be added to the playlist
data[Playlist][publish] *required boolean Publish/unpublish playlist
try {
    $api = new BridApi(array('auth_token'=>'b1437c94847d7e19268ad3bda0e46f8f6bc36f45'));
    $post = array('data[Playlist][partner_id]'=>'123456', 'data[Playlist][id]'=>'789', 'data[Playlist][name]'=>'Playlist name', 'data[Video][ids]'=>'1,2,3,4,5,6');
    $return = $api->post(['playlists', 'edit', 13085], $post);
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 playlist data when trying out these examples.