Delete Virtual Linear Playlist

Deletes a virtual linear playlist.

Request

Request syntax:

DELETE /linear-playlist/Playlist ID

Define the following variable when submitting the above request:

VariableA variable represents a value that must be replaced. A variable consists of either a URL segment (e.g., "0001" in /0001/) or a query string value (e.g., "3" in mediaTypes=3).Description
Playlist ID RequiredReplace this variable with the system-defined ID assigned to the desired virtual linear playlist. Use the Get All Virtual Linear Playlists endpoint to retrieve a list of virtual linear playlists and their system-defined IDs.

Response

The response for a successful request is a 204 No Content.

Sample Request/Response

Call the delete_virtual_linear_playlist module (Python 3) to delete a virtual linear playlist. This module imports names from the api_auth module.

import requests
from api_auth import APICredentials, APIParams

class VirtualLinearPlaylist:
    def __init__(self):
        self.host = "https://services.uplynk.com"

    def run(self):
        self._delete_virtual_linear_playlist()

    def _delete_virtual_linear_playlist(self):
        playlist_id = 'abce801613f94955b17db4f7c8e8137c' # Replace with the desired playlist ID.
        url = "{}{}{}".format(self.host, "/api/v4/linear-playlist/", playlist_id)

        headers = {'Content-Type': 'application/json'}

        response = requests.delete(
            url, params=APIParams(APICredentials()).get_params({}), headers=headers
        )

VirtualLinearPlaylist().run()