Version 4.0.24.18
Create a SQL interface query.
This allows you to create a new SQL interface query that you can later run. Looker queries are immutable once created
and are not deleted. If you create a query that is exactly like an existing query then the existing query
will be returned and no new query will be created. Whether a new query is created or not, you can use
the 'id' in the returned query with the 'run' method.
The query parameters are passed as json in the body of the request.
Request
POST
/sql_interface_queries
Expand HTTP Body definition...
body
SQL Interface Query Create
Expand SqlInterfaceQueryCreate definition...
can
lock
object
Operations the current user is able to perform on this object
sql
string
Original SQL request
jdbc_client
boolean
Whether the query should be run for use in a JDBC Client. This changes the formatting of some datetime based values.
Response
200: SQL Interface Query
can
lock
object
Operations the current user is able to perform on this object
id
lock
integer
Unique Id
signature
lock
string
Calcite signature
400: Bad Request
message
lock
string
Error details
documentation_url
lock
string
Documentation link
403: Permission Denied
message
lock
string
Error details
documentation_url
lock
string
Documentation link
404: Not Found
message
lock
string
Error details
documentation_url
lock
string
Documentation link
409: Resource Already Exists
message
lock
string
Error details
documentation_url
lock
string
Documentation link
422: Validation Error
message
lock
string
Error details
Expand ValidationErrorDetail definition...
field
lock
string
Field with error
code
lock
string
Error code
message
lock
string
Error info message
documentation_url
lock
string
Documentation link
documentation_url
lock
string
Documentation link
429: Too Many Requests
message
lock
string
Error details
documentation_url
lock
string
Documentation link
500: Server Error
message
lock
string
Error details
documentation_url
lock
string
Documentation link