Adding Channels to a Channel Set (Deprecated)

After you create a channel set, you can start adding channels.

Note: Channels and channel sets have been deprecated and are scheduled to be disabled. For details and alternatives, see the OVP Release Notes.
Note: For more information about Backlot REST API commands, see the Backlot API Reference.
Note: You cannot add videos directly to a channel set. To create collections of videos, use channels; see Creating a Channel (Deprecated).

To add channels to a channel set:

  1. To view channels currently assigned to a channel set, use GET /v2/assets, the asset ID of the channel set, and the /lineup qualifier. The following example lists the channels for the dvNTVxMjrRktSlb5v channel.
    [GET]/v2/assets/dvNTVxMjrRktSlb5v/lineup

    Backlot returns a response similar to the following.

    [
       "Argh3lMjphu25tH",
       "RQlbdvMjq9QtGGG" 
    ]
    Note:

    Try out the code samples using your account credentials in the Ooyala Scratchpad. For information about using the Scratchpad, see Practice Making Requests with the Scratchpad. To launch the scratchpad, go to Ooyala API Scratchpad.

  2. To add channels to a channel set or replace the current set of channels with a new set, use PUT with the /v2/assets route, the asset ID of the channel set, the /lineup and the asset IDs of channels in the request body. The following example adds the IzNnllMjphu2XF3 and Y1dTdvMjq9QtOMG channels to the dvNTVxMjrRktSlb5v channel set.
    [PUT]/v2/assets/dvNTVxMjrRktSlb5v/lineup[
       "IzNnllMjphu2XF3",
       "Y1dTdvMjq9QtOMG" 
    ]

    Backlot returns a response similar to the following.

    [
       "IzNnllMjphu2XF3",
       "Y1dTdvMjq9QtOMG" 
    ]
    Note:

    Try out the code samples using your account credentials in the Ooyala Scratchpad. For information about using the Scratchpad, see Practice Making Requests with the Scratchpad. To launch the scratchpad, go to Ooyala API Scratchpad.

  3. To append a single single to a channel set without replacing the current ones, use PUT /v2/assets with the asset ID of the channel set, the /lineup qualifier, and the asset ID of the channel to add. The following example adds the BrdXVjMjrgtupU3M channel to the dvNTVxMjrRktSlb5v channel set.
    [PUT]/v2/assets/dvNTVxMjrRktSlb5v/lineup/BrdXVjMjrgtupU3M

    Backlot returns a response similar to the following.

    [
       "BrdXVjMjrgtupU3M",
       "IzNnllMjphu2XF3",
       "Y1dTdvMjq9QtOMG" 
    ]
  4. To remove a channel from a channel set, use DELETE /v2/assets with the asset ID of the channel set, the /lineup qualifier, and the asset ID of the channel to remove. The following example deletes the BrdXVjMjrgtupU3M channel from the dvNTVxMjrRktSlb5v channel set.
    [DELETE]/v2/assets/dvNTVxMjrRktSlb5v/lineup/BrdXVjMjrgtupU3M

    Backlot returns a response similar to the following.

    [
       "IzNnllMjphu2XF3",
       "Y1dTdvMjq9QtOMG" 
    ]

The channels within the channel set are successfully updated.

Was this article helpful?