Public/New-GCRoutingQueueWrapupCodes.ps1
|
<# .SYNOPSIS Adds wrapup codes to a routing queue in Genesys Cloud. .DESCRIPTION Adds one or more wrapup codes to a specific routing queue by sending a POST request. API Endpoint: POST /api/v2/routing/queues/{queueId}/wrapupcodes .PARAMETER QueueId The unique identifier of the routing queue. .PARAMETER Body The request body containing the wrapup code IDs to add. Accepts a hashtable or JSON string. Should include an array of wrapup code objects with their IDs. .EXAMPLE New-GCRoutingQueueWrapupCodes -QueueId 'queue-id' -Body @(@{ id = 'wrapup-code-id-1' }, @{ id = 'wrapup-code-id-2' }) Adds the specified wrapup codes to the queue. .NOTES Genesys Cloud API: POST /api/v2/routing/queues/{queueId}/wrapupcodes #> function New-GCRoutingQueueWrapupCodes { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$QueueId, [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "routing/queues/$QueueId/wrapupcodes" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |