Public/New-GCArchitectIvr.ps1

<#
.SYNOPSIS
    Creates a new IVR configuration in Genesys Cloud.

.DESCRIPTION
    Creates a new architect IVR configuration using the Genesys Cloud API.
    API Endpoint: POST /api/v2/architect/ivrs

.PARAMETER Body
    The IVR configuration object to create. Should include properties such as name, dnis, and openHoursFlow.

.EXAMPLE
    $ivrBody = @{ name = 'New IVR'; dnis = @('+15551234567') }
    New-GCArchitectIvr -Body $ivrBody
    Creates a new IVR configuration.

.NOTES
    Genesys Cloud API: POST /api/v2/architect/ivrs
#>

function New-GCArchitectIvr {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [object]$Body
    )

    $endpoint = "architect/ivrs"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body
}