Stuck on a persistent 500 Internal Server Error when deploying custom analytics metrics via the Genesys Cloud provider. The resource genesyscloud_analytics_dashboard fails during terraform apply specifically when referencing a custom metric definition that uses a sum aggregation on a non-standard event type.
The API documentation suggests this aggregation is supported, and the same metric works perfectly when created manually in the Admin UI. However, the CLI and Terraform provider reject the payload.
Error snippet from terraform apply:
Error: POST https://api.mypurecloud.com/api/v2/analytics/reports: 500 Internal Server Error
Response: {"code":"500","message":"Internal Server Error","status":"500"}
Environment details:
- Provider:
genesys 1.15.4 - Terraform:
1.6.6 - Region:
us-1 - OS:
macOS 14.2
I have verified the OAuth token has the analytics:report:view and analytics:report:write scopes. The issue seems isolated to the aggregation logic in the request body. Is there a known limitation or bug with the API endpoint /api/v2/analytics/reports regarding custom metric sums? Or is this a provider serialization issue?