400 Bad Request on POST /api/v2/analytics/reporting/definitions via GC CLI

HTTP 400 Bad Request
{
 "errors": [
 {
 "code": "INVALID_INPUT",
 "message": "Invalid field: 'metrics'. Expected array of objects with 'id' and 'name'."
 }
 ]
}

Running automated deployment pipeline using Genesys Cloud CLI v5.4.2 against Australia/Sydney region. Terraform provider v1.65.2 handles infrastructure, but custom reporting definitions require direct API calls due to complex metric aggregations not fully supported by current HCL resources.

Payload structure validated against Swagger spec. JSON schema appears correct. Issue persists across multiple environments (Dev, Stage). Manual creation via UI works fine. Same payload fails when sent via CLI script or GitHub Actions runner.

Environment:

  • Region: Australia/Sydney
  • CLI Version: 5.4.2
  • TF Provider: 1.65.2
  • Runner: Ubuntu 22.04 (GitHub Actions)

Request Payload Snippet:

{
 "name": "Daily_Agent_Perf_Report",
 "description": "Automated daily agent performance metrics",
 "timeGroup": "date",
 "metrics": [
 {
 "id": "agent-interactions-total",
 "name": "Total Interactions"
 },
 {
 "id": "agent-handle-time",
 "name": "Average Handle Time"
 }
 ],
 "filters": [
 {
 "dimension": "queue-id",
 "operator": "equals",
 "values": ["123456"]
 }
 ]
}

Error suggests metric object structure mismatch. Verified metric IDs via GET /api/v2/analytics/reporting/definitions?metric=agent-interactions-total. IDs are correct.

Is there a known issue with CLI handling of nested metric objects in reporting definitions? Or is this a validation bug in the Sydney region API endpoint? Need to automate this without manual UI intervention.

Logs show no additional details. Retrying with verbose logging enabled. No change in response.

Any insights appreciated. Stuck on this for two days now. Blocking deployment.