Public/New-GCRoutingWrapupCode.ps1
|
<# .SYNOPSIS Creates a new wrapup code in Genesys Cloud. .DESCRIPTION Creates a new wrapup code in Genesys Cloud by sending a POST request. API Endpoint: POST /api/v2/routing/wrapupcodes .PARAMETER Body The request body containing the wrapup code properties. Accepts a hashtable or JSON string. Required properties typically include 'name'. .EXAMPLE New-GCRoutingWrapupCode -Body @{ name = 'Issue Resolved' } Creates a new wrapup code named 'Issue Resolved'. .NOTES Genesys Cloud API: POST /api/v2/routing/wrapupcodes #> function New-GCRoutingWrapupCode { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "routing/wrapupcodes" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |