Skip to main content
axiom.createSavedQuery creates a reusable APL query. Include its owner, string metadata, and complete query request; returns the saved query with ID.
automations/axiom-create-saved-query.automation.ts

Inputs

kind must be "apl"; name, who, metadata, and query are required. The query requires non-empty apl; startTime defaults to "now-30m" and endTime to "now". Optional query fields configure cursor inclusion, default limits and ordering, libraries, variables, and query display or execution options. dataset is an optional dataset hint.

Output

Returns the saved query with its Axiom id and complete stored configuration.

Permission and failures

The API token needs the dataset-level starredQueries|create capability for the relevant dataset. Axiom rejects invalid APL, inaccessible dataset references, invalid time expressions, and unsupported query options. This mutation is not retried automatically after an ambiguous provider response.