Ad InsertionDelete Ad Break Schedule

Delete Ad Break Schedule

Deletes the schedule record. When mode is clear, all queued triggers are also deleted.

curl -X DELETE "https://api.5centscdn.com/v2/streams/pull/123/adinsertion/schedule/123" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "_METHOD": "DELETE",
  "mode": "delete"
}'
{
  "result": "success",
  "message": "Schedule Deleted"
}
DELETE
/streams/pull/{streamid}/adinsertion/schedule/{scheduleid}
DELETE
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

path
streamidinteger
Required

Numeric stream ID.

path
scheduleidinteger
Required

Numeric schedule ID.

Content-Typestring
Required

The media type of the request body

Options: application/json
_METHODstring
Required

HTTP method override for this request. This endpoint accepts POST, but set this to DELETE to perform a delete operation.

modestring
Required

delete removes schedule only; clear also deletes queued triggers.

Options: delete, clear
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Path Parameters

streamidinteger
Required

Numeric stream ID.

scheduleidinteger
Required

Numeric schedule ID.

Body

application/json
_METHODstring
Required

HTTP method override for this request. This endpoint accepts POST, but set this to DELETE to perform a delete operation.

Example:
DELETE
modestring
Required

delete removes schedule only; clear also deletes queued triggers.

Allowed values:deleteclear

Responses

resultstring

Status of the API response.

Allowed values:successerror
messagestring

Human-readable message describing the result.