Public/New-GCTelephonySite.ps1
|
<# .SYNOPSIS Creates a new telephony site in Genesys Cloud. .DESCRIPTION Posts a new telephony site configuration to the Genesys Cloud API. API Endpoint: POST /api/v2/telephony/providers/edges/sites .PARAMETER Body The request body containing the site configuration including name, location, edge auto-update configuration, and other site properties. Should conform to the Genesys Cloud site creation schema. .EXAMPLE $siteBody = @{ name = 'New York Office' description = 'Primary NYC telephony site' location = @{ id = 'location-123' } edgeAutoUpdateConfig = @{ timeZone = 'America/New_York' } } New-GCTelephonySite -Body $siteBody Creates a new telephony site with the specified configuration. .NOTES Genesys Cloud API: POST /api/v2/telephony/providers/edges/sites #> function New-GCTelephonySite { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "telephony/providers/edges/sites" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |