Skip to main content
axiom.updateSavedQuery replaces one saved APL query. Include the complete query, metadata, owner, name, and kind: "apl".
automations/axiom-update-saved-query.automation.ts

Inputs

savedQueryId, kind: "apl", name, who, metadata, and the complete query are required. Within query, apl is required, while startTime defaults to "now-30m" and endTime defaults to "now". Optional cursor, ordering, library, variable, display, and execution settings replace their stored values; dataset is optional.

Output

Returns the complete updated saved query with its Axiom ID.

Permission and failures

The API token needs the dataset-level starredQueries|update capability for the relevant dataset. Axiom rejects missing saved queries, invalid APL or time expressions, and inaccessible dataset references. This replacement mutation is not retried automatically after an ambiguous provider response.