Looking for some advice on troubleshooting this 400 Bad Request on the /api/v2/analytics/details endpoint. We mapped old Zendesk ticket fields to Genesys Cloud custom metrics, but the API rejects the payload even though the metric exists in the UI. Using v1.0 of the Python SDK in eu-west-1.
“metric”: “zendesk:custom_field_123”
I usually solve this by ensuring the metric name in the analytics payload exactly matches the identifier shown in the Admin UI, not the display label. The 400 error often occurs when the legacy Zendesk key is used instead of the new Genesys Cloud metric ID.