Skip to main content
POST
Create a query

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

It should be unique. Must be <= 256 characters and consist of only alphanumeric characters and underscores.

collaborators
object
required

Describes who can view or query a resource

ast
object
required

The AST representing the query.

display_name
string

Optional. Display Name must be non-empty and less than 1000 chars.

description
string

A human-friendly description of the query.

tags
string[]

Optional. Each tag must be less than 256 chars.

Response

200 - application/json

OK

id
string<uuid>
required
name
string
required

It should be unique. Must be <= 256 characters and consist of only alphanumeric characters and underscores.

collaborators
object
required

Describes who can view or query a resource

owner
object
required

Information about the owner of the query

metadata
object
required

Metadata about when and by whom a query was created/updated

ast
object
required

The AST representing the query.

display_name
string

Optional. Display Name must be non-empty and less than 1000 chars.

description
string

A human-friendly description of the query.

tags
string[]

Optional. Each tag must be less than 256 chars.

is_owned
boolean

Whether the requestor owns the query.