Creates a new query under the given project. Supports plain and materialized query types. Optionally accepts a path to place the query in a folder hierarchy.


Use the Authorization header with the value 'Bearer
ID of the Project
Query Request
The display name of the query.
The sql query.
The type of the query: PLAIN or MATERIALIZED
Default is PLAIN.
This class represents a schedule for a materialized query.
The folder path to place this query in (e.g. "/reports/monthly"). If provided, intermediate folders are created automatically. Optional — if omitted, the query is placed at the root level.
Query created
Queries in this folder (present only when includeQueries=true)
The ID of the query.
The display name of the query.
The name of the query.
This is the name of the query which will be used in the sql query.
e.g. SELECT * FROM "peaka"."query"."
The sql query.
The reference id of the input query.
The type of the query: PLAIN or MATERIALIZED
This class represents a schedule for a materialized query.
The path of the query (e.g. "/analytics/dashboards"). Null if the query is not in any folder.
The ID of the folder containing this query. Null if the query is not in any folder.