Create query

Create and enqueue the execution of a SQL query

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
querystringRequired
The SQL query
datasetIdstringRequiredformat: "uuid4"
The id of the dataset to query

Response

The created query
createdUserIdstring
The user that created the resource
createdDtstringformat: "date-time"
The created datetime of the resource
updatedUserIdstring
The user that last updated the resource
updatedDtstringformat: "date-time"
The datetime the resource was last updated
queryIdstringformat: "uuid4"
The query id
querystring
The SQL query
datasetIdstringformat: "uuid4"
The dataset id
statusenum
The current status of the query
startDtstring or nullformat: "date-time"
The time the query started executing
endDtstring or nullformat: "date-time"
The time the query finished executing
isActiveboolean or nullDefaults to false
Defines if the query is in an active state or not

Errors