Create saved query
Saves an APL query for the authenticated user. Axiom sets who to the caller and kind to apl. If you omit dataset, Axiom uses the alphabetically first dataset that query.apl references.
Body
application/json| Property | Type | Description |
|---|---|---|
dataset | string | |
kind | stringRequired | |
metadata | objectRequired | |
name | stringRequired | |
query | objectRequired | |
apl | stringRequired | |
cursor | string | |
default | integer | |
default | object[] | |
desc | boolean | |
field | string | |
end | string | |
include | boolean | |
include | boolean | |
libraries | string[] | |
query | object | |
disable | boolean | |
disable | boolean | |
disable | boolean | |
max | integer | |
max | integer | |
no | boolean | |
no | boolean | |
no | boolean | |
priority | string | |
resolution | string | |
display | string | Controls how empty intervals are rendered in time series charts. auto infers from the query, null leaves gaps, span connects adjacent points, zero fills with zero. |
overlay | string | When enabled, charts are overlaid on a single chart instead of stacked separately. |
shown | string | |
time | string | |
time | string | |
start | string | |
variables | object | |
who | stringRequired |
Request
Try itRun this request against your Axiom organization
Credentials stay in this browser tab and are only sent to Axiom when you run the request.
Response
200Created saved query.400Missing `name`, or no `dataset` given and none found in `query.apl`.403You don't have permission to create saved queries on the dataset.