Update saved query
draxlr_update_saved_queryUpdate an existing saved query: rename it, change its description, and/or replace its SQL (raw SQL queries only). Provide the saved queryId (from draxlr_list_saved_queries) and any of name, description or sql.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | New SQL to replace the query's definition (raw SQL queries only). If you add variables, write them as {{variableName}} using letters only (e.g. {{startDate}}); numbers, underscores and other special characters are not allowed. Pass their values in `variables`, or wrap each condition that uses a variable in [[ ]] (e.g. WHERE 1=1 [[AND created_at >= {{startDate}}]]) so it is skipped when no value is given. | |
| name | No | New name for the saved query | |
| queryId | Yes | The saved query id to update (from draxlr_list_saved_queries) | |
| variables | No | Values for the {{variables}} used in the SQL, keyed by variable name, e.g. { "startDate": "2026-01-01" }. Use an array for IN lists. | |
| description | No | New description for the saved query |