Create query

POST
Create and enqueue the execution of a SQL query

Request

This endpoint expects an object.
querystringRequired
The SQL query
datasetIdstringRequired
The id of the dataset to query

Response

This endpoint returns an object.
createdUserIdstring
The user that created the resource
createdDtdatetime
The created datetime of the resource
updatedUserIdstring
The user that last updated the resource
updatedDtdatetime
The datetime the resource was last updated
queryIdstring
The query id
querystring
The SQL query
datasetIdstring
The dataset id
statusenum
The current status of the query
startDtdatetimeOptional
The time the query started executing
endDtdatetimeOptional
The time the query finished executing
isActivebooleanOptional
Defines if the query is in an active state or not