DataQuery — data-service
Section titled “DataQuery — data-service”Every response below is delivered inside the universal {success, result} envelope; downloads and streams bypass it structurally. See Calling the HTTP API.
Snapshot:
data-service.json· data-service 1.11.0 · 10 operations
GET /v1/entities/{entity}/queries
Section titled “GET /v1/entities/{entity}/queries”find
— List all queries for specific entity
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
filter | query | no | — |
Responses
| Status | Description |
|---|---|
200 | Array of DataQueryWithTagDto model instances |
POST /v1/entities/{entity}/queries
Section titled “POST /v1/entities/{entity}/queries”create
— Create new query for specific entity
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
Request body: NewDataQueries
Responses
| Status | Description |
|---|---|
200 | DataQueryWithTagDto model instance |
DELETE /v1/entities/{entity}/queries/{id}
Section titled “DELETE /v1/entities/{entity}/queries/{id}”deleteById
— Delete query by id
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
id | path | yes | string |
Responses
| Status | Description |
|---|---|
200 | DataQuery DELETE success |
GET /v1/entities/{entity}/queries/{id}
Section titled “GET /v1/entities/{entity}/queries/{id}”findById
— Get query by id
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
id | path | yes | string |
filter | query | no | — |
Responses
| Status | Description |
|---|---|
200 | DataQueryWithTagDto model instance |
PATCH /v1/entities/{entity}/queries/{id}
Section titled “PATCH /v1/entities/{entity}/queries/{id}”updateById
— Update query by id
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
id | path | yes | string |
Request body: DataQueryWithTagDtoPartialExcluding_id-relatedTo-creationInfo-updateInfo_
Responses
| Status | Description |
|---|---|
200 | DataQueryWithTagDto model instance |
GET /v1/entities/{entity}/queries/count
Section titled “GET /v1/entities/{entity}/queries/count”count
— Count all queries for specific entity
Parameters
| Name | In | Required | Type |
|---|---|---|---|
entity | path | yes | string |
where | query | no | — |
Responses
| Status | Description |
|---|---|
200 | DataQuery model count. |
GET /v1/queries
Section titled “GET /v1/queries”findAll
— List all queries in the system
Parameters
| Name | In | Required | Type |
|---|---|---|---|
filter | query | no | — |
includeImplicit | query | no | boolean |
Responses
| Status | Description |
|---|---|
200 | Array of DataQueryWithTagDto model instances |
GET /v1/queries/count
Section titled “GET /v1/queries/count”countAll
— Count all queries in the system
Parameters
| Name | In | Required | Type |
|---|---|---|---|
where | query | no | — |
includeImplicit | query | no | boolean |
Responses
| Status | Description |
|---|---|
200 | DataQuery model count. |
GET /v1/queries/my
Section titled “GET /v1/queries/my”findMyQueries
— List all queries for current user in a view or in all views
Parameters
| Name | In | Required | Type |
|---|---|---|---|
filter | query | no | — |
Responses
| Status | Description |
|---|---|
200 | Array of MyQueryDto model instances |
POST /v1/queries/parser
Section titled “POST /v1/queries/parser”criteriaParser
Request body: filterExpressionCriteria
Responses
| Status | Description |
|---|---|
200 | renderedCriteria |
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27