Channels
Delete Channel
Soft-deletes a channel (sets status to removed). Cannot delete the first channel, and cannot delete your only remaining active channel - at least one active channel is always required. If the deleted channel was the default, the first channel becomes the new default.
DELETE
/pub_api/v3/channels/:id
write:channels
Path Parameters
|
idrequired
integer
|
Channel ID to delete. |
Request
curl -X DELETE https://developers.cuelinks.com/pub_api/v3/channels/3425 \ -H "Authorization: Token YOUR_API_KEY"
200 OK
200
{ "message": "Channel deleted" }
422 First Channel
422
{ "error": "Cannot delete the first channel" }
422 Only Channel
422
{ "error": "Cannot delete your only channel. At least one active channel is required." }