Delete Publishing Target

Deletes a publishing targetRefers to a configuration that identifies the URL to which your content may be published. A publishing schedule leverages a publishing target configuration to syndicate a live channel or a live event to a social media platform. configuration.

Request

Request syntax:

DELETE /syndication-target/Publishing Target ID

Define the following variable when submitting the above request:

VariableDescription
Publishing Target ID RequiredReplace this variable with the system-defined ID assigned to the desired publishing target configuration. Use the Get Multiple Publishing Targets endpoint to retrieve a list of publishing targets and their system-defined ID.

Response

The response for a successful request contains the following properties:

NameData TypeDescription
@idStringIndicates the relative path to an endpoint that previously returned this publishing target.
@typeStringReturns SyndicationTarget.
messageStringReturns Deleted upon successfully deleting the publishing target.

Sample Request/Response

The code below (Python 3) shows how to delete a publishing target configuration.

This code imports names from the api_auth module for V4 APIs (see below).

import requests
from api_auth import APICredentials, APIParams

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

    def run(self):
        self._delete_publishing_target()

    def _delete_publishing_target(self):
        publishing_target_id = '587be125932f4428b83e4435e41503b7'
        url = "{}{}{}".format(self.host, "/api/v4/syndication-target/", publishing_target_id)

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

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

        print(response.json())

PublishingTarget().run()

Response:

{
	"@id": "/api/v4/syndication-target/4ebd413a120a428eba0adcd98df94927",
	"@type": "SyndicationTarget",
	"message": "Deleted"
}