Public/Set-GCArchitectIvr.ps1
|
<# .SYNOPSIS Updates an existing IVR configuration in Genesys Cloud. .DESCRIPTION Updates an architect IVR configuration by its unique identifier using the Genesys Cloud API. API Endpoint: PUT /api/v2/architect/ivrs/{ivrId} .PARAMETER IvrId The unique identifier of the IVR configuration to update. .PARAMETER Body The updated IVR configuration object. .EXAMPLE $ivrBody = @{ name = 'Updated IVR'; dnis = @('+15551234567') } Set-GCArchitectIvr -IvrId 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee' -Body $ivrBody Updates the specified IVR configuration. .NOTES Genesys Cloud API: PUT /api/v2/architect/ivrs/{ivrId} #> function Set-GCArchitectIvr { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$IvrId, [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "architect/ivrs/$IvrId" return Invoke-GCApiRequest -Endpoint $endpoint -Method PUT -Body $Body } |