Public/Get-GCRoutingQueueEstimatedWaitTime.ps1

<#
.SYNOPSIS
    Retrieves the estimated wait time for a routing queue in Genesys Cloud.

.DESCRIPTION
    Queries the Genesys Cloud API to retrieve the estimated wait time for a specific
    routing queue, providing an estimate of how long a new interaction would wait.
    API Endpoint: GET /api/v2/routing/queues/{queueId}/estimatedwaittime

.PARAMETER QueueId
    The unique identifier of the routing queue.

.EXAMPLE
    Get-GCRoutingQueueEstimatedWaitTime -QueueId '12345678-1234-1234-1234-123456789012'
    Retrieves the estimated wait time for the specified queue.

.NOTES
    Genesys Cloud API: GET /api/v2/routing/queues/{queueId}/estimatedwaittime
#>

function Get-GCRoutingQueueEstimatedWaitTime {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [string]$QueueId
    )

    $endpoint = "routing/queues/$QueueId/estimatedwaittime"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}