---
title: "Changes to Submit a sql statement for execution"
method: POST
path: "/query"
---

# Changes to Submit a sql statement for execution

`POST /query`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 4 of 7 revisions.

- **2025-02-17** `0362c10fca82`: 2 info
- **2025-02-17** `e2ea299ab271`: 1 warning, 7 info
- **2025-02-17** `1926840e97ab`: 2 breaking, 1 warning
- **2025-02-17** `f2460ea70069`: 7 breaking, 2 info

## Changes

- **2025-02-17** `0362c10fca82`: 2 info
  - added the optional property `explain_analyze/operators/items/annotations/execution_metrics/nothing_executed` to the response with the `200` status
  - added the optional property `explain_analyze/operators/items/annotations/execution_metrics/optimized_out` to the response with the `200` status
- **2025-02-17** `e2ea299ab271`: 1 warning, 7 info
  - removed the request property `text`
  - the request's body type was generalized from `object` to `string`
  - added the optional property `data` to the response with the `200` status
  - added the optional property `explain_analyze` to the response with the `200` status
  - added the optional property `meta` to the response with the `200` status
  - added the optional property `query` to the response with the `200` status
  - added the optional property `rows` to the response with the `200` status
  - added the optional property `statistics` to the response with the `200` status
- **2025-02-17** `1926840e97ab`: 2 breaking, 1 warning
  - the response's body type changed from `object` to no type for status `200`
  - the `token` response's property type changed from `array` to `string` for status `202`
  - removed the optional property `query` from the response with the `200` status
- **2025-02-17** `f2460ea70069`: 7 breaking, 2 info
  - the `query/data` response's property type changed from `list` to `array` for status `200`
  - the `query/data/items/` response's property type changed from `list` to `array` for status `200`
  - the `query/explain_analyze/operators` response's property type changed from `list` to `array` for status `200`
  - the `query/explain_analyze/operators/items/annotations/input_ids` response's property type changed from `list` to `array` for status `200`
  - the `query/explain_analyze/operators/items/annotations/output_types` response's property type changed from `list` to `array` for status `200`
  - the `query/meta` response's property type changed from `list` to `array` for status `200`
  - the `token` response's property type changed from `list` to `array` for status `202`
  - the endpoint scheme security `bearer_auth` was added to the API
  - removed `subschema #4` from the `query/data/items/items/` response property `oneOf` list for the response status `200`

---

[Operation](https://skmtc.dev/firebolt/apis/firebolt-query-api-spec/docs/query/post.md) - [API](https://skmtc.dev/firebolt/apis/firebolt-query-api-spec.md) - [Page](https://skmtc.dev/firebolt/apis/firebolt-query-api-spec/changes/query/post)
