Public/Remove-GCNotificationChannelSubscriptions.ps1
|
<# .SYNOPSIS Deletes all subscriptions from a notification channel. .DESCRIPTION Removes all subscriptions from the specified notification channel in Genesys Cloud. Uses the DELETE /api/v2/notifications/channels/{channelId}/subscriptions endpoint. .PARAMETER ChannelId The unique identifier of the notification channel. .EXAMPLE Remove-GCNotificationChannelSubscriptions -ChannelId 'channel-id' .NOTES Genesys Cloud API: DELETE /api/v2/notifications/channels/{channelId}/subscriptions #> function Remove-GCNotificationChannelSubscriptions { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ChannelId ) $endpoint = "notifications/channels/$ChannelId/subscriptions" return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE } |