{
  "topic": "errors.MISSING_GROUP_BY",
  "path": [
    "errors",
    "MISSING_GROUP_BY"
  ],
  "title": "MISSING_GROUP_BY — grouped-stats request supplied no groupBy dimension",
  "synopsis": "Raised by `POST /api/entity/stats/{entityName}/{modelVersion}/query`. `groupBy` is required and must carry at least one dimension: the endpoint returns one bucket per distinct group key, and there is no reading of the request that groups by nothing.",
  "body": "# errors.MISSING_GROUP_BY\n\n## NAME\n\nMISSING_GROUP_BY — the grouped-statistics request omitted `groupBy`, or sent it as an empty array.\n\n## SYNOPSIS\n\nHTTP: `400` `Bad Request`. Retryable: `no`.\n\n## DESCRIPTION\n\nRaised by `POST /api/entity/stats/{entityName}/{modelVersion}/query`. `groupBy` is required and must carry at least one dimension: the endpoint returns one bucket per distinct group key, and there is no reading of the request that groups by nothing.\n\nSupply at least one entry — either the reserved token `state` (lifecycle state) or a scalar JSONPath into the payload, such as `$.country`. For an ungrouped count of a model's entities, use the model statistics endpoint instead.\n\n## SEE ALSO\n\n- errors\n- crud\n- errors.DUPLICATE_GROUP_BY\n- errors.INVALID_GROUP_BY_PATH\n",
  "sections": [
    {
      "name": "NAME",
      "body": "MISSING_GROUP_BY — the grouped-statistics request omitted `groupBy`, or sent it as an empty array."
    },
    {
      "name": "SYNOPSIS",
      "body": "HTTP: `400` `Bad Request`. Retryable: `no`."
    },
    {
      "name": "DESCRIPTION",
      "body": "Raised by `POST /api/entity/stats/{entityName}/{modelVersion}/query`. `groupBy` is required and must carry at least one dimension: the endpoint returns one bucket per distinct group key, and there is no reading of the request that groups by nothing.\n\nSupply at least one entry — either the reserved token `state` (lifecycle state) or a scalar JSONPath into the payload, such as `$.country`. For an ungrouped count of a model's entities, use the model statistics endpoint instead."
    },
    {
      "name": "SEE ALSO",
      "body": "- errors\n- crud\n- errors.DUPLICATE_GROUP_BY\n- errors.INVALID_GROUP_BY_PATH"
    }
  ],
  "see_also": [
    "errors",
    "crud",
    "errors.DUPLICATE_GROUP_BY",
    "errors.INVALID_GROUP_BY_PATH"
  ],
  "stability": "stable",
  "actions": []
}
