Public/New-GCRoutingQueue.ps1
|
<# .SYNOPSIS Creates a new routing queue in Genesys Cloud. .DESCRIPTION Creates a new routing queue in Genesys Cloud by sending a POST request. The body should contain queue properties such as name, description, and media settings. API Endpoint: POST /api/v2/routing/queues .PARAMETER Body The request body containing the queue properties. Accepts a hashtable or JSON string. Required properties typically include 'name'. .EXAMPLE New-GCRoutingQueue -Body @{ name = 'Support Queue'; description = 'Main support queue' } Creates a new routing queue with the specified name and description. .NOTES Genesys Cloud API: POST /api/v2/routing/queues #> function New-GCRoutingQueue { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "routing/queues" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |