Public/New-GCRoutingLanguage.ps1
|
<# .SYNOPSIS Creates a new routing language in Genesys Cloud. .DESCRIPTION Creates a new routing language in Genesys Cloud by sending a POST request. API Endpoint: POST /api/v2/routing/languages .PARAMETER Body The request body containing the language properties. Accepts a hashtable or JSON string. Required properties typically include 'name'. .EXAMPLE New-GCRoutingLanguage -Body @{ name = 'Spanish' } Creates a new routing language named 'Spanish'. .NOTES Genesys Cloud API: POST /api/v2/routing/languages #> function New-GCRoutingLanguage { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "routing/languages" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |