Update saved query
fastero_update_queryChange a saved query’s name or SQL text; fields not sent stay as they are, and its connection cannot be changed here. New SQL must be read-only, as for fastero_create_query. Every report, dashboard chart and alert built on the query reads the new SQL from its next run, and a chart plotting a column the new SQL no longer returns stops drawing it. The old SQL is not kept. When the SQL changes, send definitionsUsed again so it is restamped at the current version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | The new SQL text, replacing the old. | |
| name | No | A new name. | |
| queryId | Yes | A saved query’s id, from fastero_list_queries. | |
| projectId | Yes | The project’s id, from fastero_list_projects. | |
| definitionsUsed | No | Names of the shared definitions (metrics, datasets) the SQL was built from. |