Public/New-GCLearningModule.ps1
|
<# .SYNOPSIS Creates a new learning module. .DESCRIPTION Creates a new learning module in Genesys Cloud. Uses the POST /api/v2/learning/modules endpoint. .PARAMETER Body The learning module definition object. .EXAMPLE $moduleBody = @{ name = 'Onboarding Training'; description = 'New hire training module' } New-GCLearningModule -Body $moduleBody .NOTES Genesys Cloud API: POST /api/v2/learning/modules #> function New-GCLearningModule { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "learning/modules" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |