Public/Get-GCWfmActivityCodes.ps1
|
<# .SYNOPSIS Retrieves activity codes for a management unit from Genesys Cloud. .DESCRIPTION Queries the Genesys Cloud API to retrieve the list of activity codes configured for a specific management unit. Activity codes define the types of activities agents can be scheduled for. API Endpoint: GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/activitycodes .PARAMETER ManagementUnitId The unique identifier of the management unit whose activity codes to retrieve. .EXAMPLE Get-GCWfmActivityCodes -ManagementUnitId 'abc123-def456' Retrieves all activity codes for the specified management unit. .NOTES Genesys Cloud API: GET /api/v2/workforcemanagement/managementunits/{managementUnitId}/activitycodes #> function Get-GCWfmActivityCodes { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ManagementUnitId ) $endpoint = "workforcemanagement/managementunits/$ManagementUnitId/activitycodes" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |