Nova API — /api/saved-queries
The operations Nova tags public under /api/saved-queries. Generated from reference-src/nova-openapi.json.
GET /api/saved-queries
Operation id saved_queries_list: in Python client.call("saved_queries_list", …), on the command line stardelt api saved_queries_list.
GET /api/saved-queries — the caller's own, newest first.
The caller's own saved queries, most recently changed first. Times are epoch milliseconds.
Responses
| Code | Description |
|---|---|
200 | The caller's saved queries |
401 | Not signed in |
503 | The state store is not configured |
POST /api/saved-queries
Operation id saved_queries_create: in Python client.call("saved_queries_create", …), on the command line stardelt api saved_queries_create.
POST /api/saved-queries — 201 with the stored row.
Save a query for the caller. The title is at most 200 characters and the SQL at most 100 000.
Request body
| Field | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
sql | string | Yes | |||
title | string | Yes | |||
warehouse | string | No | The warehouse the query was written for; free text, may be empty. |
Responses
| Code | Description |
|---|---|
201 | The stored row |
400 | The title or the SQL is empty or too long |
401 | Not signed in |
503 | The state store is not configured |
DELETE /api/saved-queries/{id}
Operation id saved_queries_remove: in Python client.call("saved_queries_remove", …), on the command line stardelt api saved_queries_remove.
DELETE /api/saved-queries/{id} — 204; 404 when the id is not the caller's.
Delete one of the caller's saved queries.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | integer | Yes | The saved query's id |
Responses
| Code | Description |
|---|---|
204 | Deleted |
401 | Not signed in |
404 | No such saved query, or it is not the caller's |
503 | The state store is not configured |
POST /api/saved-queries/{id}/share
Operation id saved_queries_share: in Python client.call("saved_queries_share", …), on the command line stardelt api saved_queries_share.
POST /api/saved-queries/{id}/share — 204, whether the share is new, a repeat or the id is not the caller's.
Share one of the caller's saved queries with a group. Members of the group see it in the list.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | integer | Yes | The saved query's id |
Request body
| Field | Type | Required | Default | Description | Constraints |
|---|---|---|---|---|---|
group | string | Yes |
Responses
| Code | Description |
|---|---|
204 | Shared, already shared, or not the caller's |
400 | The group name is not valid |
401 | Not signed in |
404 | The id is not a number |
503 | The state store is not configured |
DELETE /api/saved-queries/{id}/share/{group}
Operation id saved_queries_unshare: in Python client.call("saved_queries_unshare", …), on the command line stardelt api saved_queries_unshare.
DELETE /api/saved-queries/{id}/share/{group} — 204 when a share was removed; 404 when there was none, or the query is not the caller's.
Stop sharing one of the caller's saved queries with a group.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
group | path | string | Yes | The group name |
id | path | integer | Yes | The saved query's id |
Responses
| Code | Description |
|---|---|
204 | The share is gone |
401 | Not signed in |
404 | No such share, or the query is not the caller's |
503 | The state store is not configured |