Public/Get-GCLearningModule.ps1
|
<# .SYNOPSIS Retrieves a single learning module by ID. .DESCRIPTION Returns the details of a specific learning module from Genesys Cloud. Uses the GET /api/v2/learning/modules/{moduleId} endpoint. .PARAMETER ModuleId The unique identifier of the learning module to retrieve. .EXAMPLE Get-GCLearningModule -ModuleId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' .NOTES Genesys Cloud API: GET /api/v2/learning/modules/{moduleId} #> function Get-GCLearningModule { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ModuleId ) $endpoint = "learning/modules/$ModuleId" return Invoke-GCApiRequest -Endpoint $endpoint -Method GET } |