Query
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
DELETE | |
GET | |
POST | |
GET | |
POST |
Create query create
Required API key scopes
query:readPath parameters
- project_idstring
Request parameters
- asyncboolean
- client_query_idstring
- filters_override
- namestring
- query
- refreshDefault:
blocking - variables_overrideobject
Response
Example request
POST /api /projects /:project_id /queryExample response
Status 200
RESPONSE
Retrieve query retrieve
(Experimental)
Required API key scopes
query:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /projects /:project_id /query /:idExample response
Status 200
RESPONSE
Delete query destroy
(Experimental)
Required API key scopes
query:readPath parameters
- idstring
- project_idstring
Example request
DELETE /api /projects /:project_id /query /:idExample response
Status 204 Query cancelled
Retrieve query log retrieve
Get query log details from query_log_archive table for a specific query_id, the query must have been issued in last 24 hours.
Path parameters
- idstring
- project_idstring
Example request
GET /api /projects /:project_id /query /:id /logExample response
Status 200
Create query check auth for async create
Path parameters
- project_idstring
Example request
POST /api /projects /:project_id /query /check_auth_for_asyncExample response
Status 200 No response body
Retrieve query draft sql retrieve
Path parameters
- project_idstring
Example request
GET /api /projects /:project_id /query /draft_sqlExample response
Status 200 No response body
Create query upgrade create
Upgrades a query without executing it. Returns a query with all nodes migrated to the latest version.
Path parameters
- project_idstring
Request parameters
- query
Response
Example request
POST /api /projects /:project_id /query /upgradeExample response
Status 200
RESPONSE