Passa al contenuto principale

Create Question

POST 

/v1/questions

Save a question: a named SQL query over datasets, run live each time it is read.

The SQL is checked before anything is saved, by inferring its output columns: a query that does not run is refused with 422 and the database's own message, and nothing is stored. A dataset the caller may not read is refused with 403. Without a defaultViz, the question gets a table of its output columns.

The question belongs to the caller: it is listed and read by its owner only. Needs the creator or admin role, and spends account credits like any query.

Request​

Responses​

Successful Response