Public/New-GCNotificationChannel.ps1

<#
.SYNOPSIS
    Creates a new notification channel.

.DESCRIPTION
    Creates a new notification channel in Genesys Cloud for receiving real-time events.
    Uses the POST /api/v2/notifications/channels endpoint.

.PARAMETER Body
    The notification channel definition object. An empty body is acceptable.

.EXAMPLE
    New-GCNotificationChannel -Body @{}

.NOTES
    Genesys Cloud API: POST /api/v2/notifications/channels
#>

function New-GCNotificationChannel {
    [CmdletBinding()]
    param(
        [Parameter()]
        [object]$Body = @{}
    )

    $endpoint = "notifications/channels"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body
}