Public/New-GCPresenceDefinition.ps1
|
<# .SYNOPSIS Creates a new presence definition in Genesys Cloud. .DESCRIPTION Creates a new organization presence definition in Genesys Cloud by sending a POST request. API Endpoint: POST /api/v2/presence/definitions .PARAMETER Body The request body containing the presence definition properties. Accepts a hashtable or JSON string. Required properties typically include 'languageLabels' and 'systemPresence'. .EXAMPLE New-GCPresenceDefinition -Body @{ languageLabels = @{ en_US = 'In Training' }; systemPresence = 'Away' } Creates a new presence definition labeled 'In Training' mapped to the Away system presence. .NOTES Genesys Cloud API: POST /api/v2/presence/definitions #> function New-GCPresenceDefinition { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "presence/definitions" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |