Public/New-GCAnalyticsReportingExport.ps1
|
<# .SYNOPSIS Creates a new analytics reporting export. .DESCRIPTION Creates a new analytics reporting export job in Genesys Cloud. The export job will generate a downloadable report based on the specified parameters. Calls POST /api/v2/analytics/reporting/exports. .PARAMETER Body The mandatory request body containing the export definition including name, timeZone, exportFormat, interval, viewType, and filter. .EXAMPLE $exportBody = @{ name = 'Daily Queue Report' timeZone = 'America/New_York' exportFormat = 'CSV' interval = '2024-01-01T00:00:00Z/2024-01-02T00:00:00Z' viewType = 'QUEUE_PERFORMANCE_DETAIL_VIEW' } New-GCAnalyticsReportingExport -Body $exportBody .NOTES Genesys Cloud API: POST /api/v2/analytics/reporting/exports #> function New-GCAnalyticsReportingExport { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [object]$Body ) $endpoint = "analytics/reporting/exports" return Invoke-GCApiRequest -Endpoint $endpoint -Method POST -Body $Body } |