Public/Get-GCWfmAdherence.ps1
|
<# .SYNOPSIS Retrieves real-time adherence data for a management unit from Genesys Cloud. .DESCRIPTION Queries the Genesys Cloud API to retrieve the current adherence status for agents within a specific management unit. API Endpoint: GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/adherence .PARAMETER ManagementUnitId The unique identifier of the management unit whose adherence data to retrieve. .EXAMPLE Get-GCWfmAdherence -ManagementUnitId 'abc123-def456' Retrieves real-time adherence data for the specified management unit. .NOTES Genesys Cloud API: GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/adherence #> function Get-GCWfmAdherence { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ManagementUnitId ) $endpoint = "workforcemanagement/managementunits/$ManagementUnitId/adherence" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |