{
  "topic": "errors.INVALID_AGGREGATION_OP",
  "path": [
    "errors",
    "INVALID_AGGREGATION_OP"
  ],
  "title": "INVALID_AGGREGATION_OP — unknown aggregation operator",
  "synopsis": "Raised by `POST /api/entity/stats/{entityName}/{modelVersion}/query`. The supported operators are `sum`, `avg`, `min`, `max` and `stdev`, spelled lowercase. Anything else — including `count`, an uppercase spelling, or a typo — is rejected, and the message echoes the value that was sent.",
  "body": "# errors.INVALID_AGGREGATION_OP\n\n## NAME\n\nINVALID_AGGREGATION_OP — an aggregation's `op` is not one of the supported operators.\n\n## SYNOPSIS\n\nHTTP: `400` `Bad Request`. Retryable: `no`.\n\n## DESCRIPTION\n\nRaised by `POST /api/entity/stats/{entityName}/{modelVersion}/query`. The supported operators are `sum`, `avg`, `min`, `max` and `stdev`, spelled lowercase. Anything else — including `count`, an uppercase spelling, or a typo — is rejected, and the message echoes the value that was sent.\n\nThere is no `count` operator because every bucket already carries `count`. `stdev` is the sample standard deviation (divisor `n − 1`) and is `null` when a bucket has fewer than two numeric samples.\n\n## SEE ALSO\n\n- errors\n- crud\n- errors.INVALID_AGGREGATION_FIELD\n- errors.DUPLICATE_AGGREGATION_ALIAS\n",
  "sections": [
    {
      "name": "NAME",
      "body": "INVALID_AGGREGATION_OP — an aggregation's `op` is not one of the supported operators."
    },
    {
      "name": "SYNOPSIS",
      "body": "HTTP: `400` `Bad Request`. Retryable: `no`."
    },
    {
      "name": "DESCRIPTION",
      "body": "Raised by `POST /api/entity/stats/{entityName}/{modelVersion}/query`. The supported operators are `sum`, `avg`, `min`, `max` and `stdev`, spelled lowercase. Anything else — including `count`, an uppercase spelling, or a typo — is rejected, and the message echoes the value that was sent.\n\nThere is no `count` operator because every bucket already carries `count`. `stdev` is the sample standard deviation (divisor `n − 1`) and is `null` when a bucket has fewer than two numeric samples."
    },
    {
      "name": "SEE ALSO",
      "body": "- errors\n- crud\n- errors.INVALID_AGGREGATION_FIELD\n- errors.DUPLICATE_AGGREGATION_ALIAS"
    }
  ],
  "see_also": [
    "errors",
    "crud",
    "errors.INVALID_AGGREGATION_FIELD",
    "errors.DUPLICATE_AGGREGATION_ALIAS"
  ],
  "stability": "stable",
  "actions": []
}
