looking for advice on why my custom analytics report definition fails via cli.
using gc-cli v1.28.0
region: au-1
command: genesys cloud analytics reporting definition create --file report.json
response:
HTTP 400 Bad Request
{
"errors": [
{
"code": "INVALID_INPUT",
"message": "Invalid field: 'metrics'. Expected array of objects with 'id' and 'name'.",
"path": "$[0].metrics"
}
]
}
the json validates against the openapi spec locally. the metric id conversation_duration exists in the org. tried hardcoding the id from a known working report. same error.
snippet from report.json:
{
"name": "test_report",
"type": "custom",
"metrics": [
{
"id": "conversation_duration",
"name": "Conv Duration"
}
]
}
terraform provider v1.65.2 also fails with same 400 on apply. seems like a backend validation issue or api change in au-1. anyone else hit this?