Update a query / API
appsmith_update_queryUpdates an existing query or API call by modifying only the fields you specify (body, path, headers, method, or parameters) while preserving all other settings, datasource, and untouched configuration.
Instructions
Edits an existing query or API action. Only the fields you pass are changed — the server merges the rest, so the datasource and untouched settings are preserved. Does not rename: renaming needs a refactor that rewrites bindings across the app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Query text: SQL, Mongo/plugin body, or REST request body. | |
| path | No | REST only: path appended to the datasource URL. | |
| headers | No | REST only: request headers. Replaces the existing list. | |
| actionId | Yes | Action id, from appsmith_list_queries. | |
| httpMethod | No | REST only: HTTP method. | |
| queryParameters | No | REST only: query string parameters. Replaces the existing list. |