Public/New-GCOutboundDncList.ps1
|
<# .SYNOPSIS Creates a new outbound Do Not Contact (DNC) list in Genesys Cloud. .DESCRIPTION Creates a new outbound DNC list using the Genesys Cloud API. API Endpoint: POST /api/v2/outbound/dnclists .PARAMETER Body The DNC list definition object. Should include properties such as name and dncSourceType. .EXAMPLE $dncBody = @{ name = 'Internal DNC List'; dncSourceType = 'rds' } New-GCOutboundDncList -Body $dncBody Creates a new outbound DNC list. .NOTES Genesys Cloud API: POST /api/v2/outbound/dnclists #> function New-GCOutboundDncList { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "outbound/dnclists" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |