Modifying a Playlist

You can modify the parameters of any playlist.

To modify a playlist:

1. Perform a GET on the playlists playlists route to view the existing playlist. This example retrieves a playlist from the playlist_id.

[GET]/v2/playlists/625622dfd22c47e9b7dcd0e8d1843638

Backlot returns a response similar to the following:

{  
   "sort_by":"custom",
   "limit":null,
   "type":"movie",
   "id":"625622dfd22c47e9b7dcd0e8d1843638",
   "items":[  

   ],
   "created_at":"2013-07-10T18:24:32Z",
   "name":"New Movie Playlist",
   "updated_at":"2013-07-10T18:35:17Z",
   "provider_id":"61670"
}
Note: Try out the code samples using your account credentials in the Ooyala Scratchpad. To launch the Scratchpad, go to Ooyala API Scratchpad. For information about using the Scratchpad, see Practice Making Requests with the Scratchpad.

2. Use PATCH with the playlists route to update the playlist's existing parameters. The following example modifies the playlist title.

[PATCH]v2/playlists/625622dfd22c47e9b7dcd0e8d1843638{
   "name": "Modified New Movie Playlist"
}

Backlot returns a response similar to the following:

{  
   "sort_by":"custom",
   "limit":null,
   "type":"movie",
   "id":"625622dfd22c47e9b7dcd0e8d1843638",
   "items":[  

   ],
   "created_at":"2013-07-10T18:24:32Z",
   "name":"Modified New Movie Playlist",
   "updated_at":"2013-07-10T18:35:17Z",
   "provider_id":"61670"
}
Note: Try out the code samples using your account credentials in the Ooyala Scratchpad. To launch the Scratchpad, go to Ooyala API Scratchpad. For information about using the Scratchpad, see Practice Making Requests with the Scratchpad.

3. To add or remove parameters, use the PUT command as detailed in Replacing a Playlist.

Was this article helpful?