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:
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 |
---|---|
Publishing Target ID Required | Replace 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:
Name | Data Type | Description |
---|---|---|
@id | String | Indicates the relative path to an endpoint that previously returned this publishing target. |
@type | String | Returns SyndicationTarget. |
message | String | Returns Deleted upon successfully deleting the publishing target. |
Sample Request/Response
Call the delete_publishing_target module (Python 3) to delete a publishing target configuration. This module imports names from the api_auth module.
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"
}