Public/Set-GCRoutingWrapupCode.ps1
|
<# .SYNOPSIS Updates an existing wrapup code in Genesys Cloud. .DESCRIPTION Replaces the configuration of a specific wrapup code using a PUT request. API Endpoint: PUT /api/v2/routing/wrapupcodes/{codeId} .PARAMETER CodeId The unique identifier of the wrapup code to update. .PARAMETER Body The request body containing the wrapup code properties. Accepts a hashtable or JSON string. .EXAMPLE Set-GCRoutingWrapupCode -CodeId '12345678-1234-1234-1234-123456789012' -Body @{ name = 'Updated Code Name' } Updates the specified wrapup code. .NOTES Genesys Cloud API: PUT /api/v2/routing/wrapupcodes/{codeId} #> function Set-GCRoutingWrapupCode { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$CodeId, [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "routing/wrapupcodes/$CodeId" return Invoke-GCApiRequest -Endpoint $endpoint -Method PUT -Body $Body } |