Skip to main content

Nova API — /api/verified-queries

The operations Nova tags public under /api/verified-queries. Generated from reference-src/nova-openapi.json.

DELETE /api/verified-queries/{id}​

Operation id verified_queries_delete: in Python client.call("verified_queries_delete", …), on the command line stardelt api verified_queries_delete.

DELETE /api/verified-queries/{id} — 204; 404 when the id is not a row.

Remove one verified query. Only the owner group of its table and administrators may delete it.

Parameters

NameInTypeRequiredDescription
idpathintegerYesThe verified query's id

Responses

CodeDescription
204Deleted
401Not signed in
403Only the owner group and administrators may delete a verified query
404No such verified query, or the id is not a number
502The catalog is not reachable or did not answer
503The state store is not configured

POST /api/verified-queries/{id}/check​

Operation id verified_queries_check: in Python client.call("verified_queries_check", …), on the command line stardelt api verified_queries_check.

POST /api/verified-queries/{id}/check — run the statement as the caller and compare it with the expected result; 200 with the updated row either way.

Run one verified query as the caller and compare its rows with the expected result, store the outcome on the row and answer the row. Without an expected result it passes when the statement runs; with one it passes when the rows are equal as a multiset, numbers compared after rounding to six decimals. A readable difference says what was expected and what came back. Whoever may see the table may check it.

Parameters

NameInTypeRequiredDescription
idpathintegerYesThe verified query's id

Responses

CodeDescription
200The updated row: lastCheckPassed and lastCheckMessage say what the check found
400The stored SQL is no longer one read-only statement
401Not signed in
403The caller may not browse that catalog
404No such verified query, catalog or table
502The catalog is not reachable or did not answer
503The state store is not configured