Remove a channel

Is there any to remove a channel? For instance, say I have 4 channels and the 1st should remain running. I then create a 5th channel in my current app, but want to close & rerun. Can I remove the current channel (5th) so when I rerun it doesn't remove the 1st channel?

Usage Guidelines: https://developer.mypurecloud.com/api/rest/v2/notifications/notification_service.html#usage_guidelines

No, you need to reuse channels if you don't want them getting deleted.

I was looking into the NotificationsApi to access & connect onto an existing channel, but all the existing channels have a null connectUri - I assume because they were created with a different Token. Can you connect onto a channel created with a different Token?

The documentation for GET /api/v2/notifications/channels for the includechannels query param states:

Show user's channels for this specific token or across all tokens for this user and app. Channel Ids for other access tokens will not be shown, but will be presented to show their existence. Valid values: token, oauthclient

Yep - thanks. So, if using the oauthclient parameter, can you use one of the other channels that was created with a different Token? Or is there another way to use one of these channels?

The question is in regards to using the NotificationHandler Helper Class.

No, you can only use channels created with the same token.

I then create a 5th channel in my current app, but want to close & rerun

If your app isn't remembering the auth token between sessions, you're not going to be able to reuse channels.

Thank you for the information. Since there is a limit of 5 channels per user and app, it would be nice to be able to delete a channel created by the current token.

You can request new features at https://purecloud.ideas.aha.io/ideas

FYI, this was just posted:

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.