Key Parameters
- query_id - The ID of the query to update (in the URL path)
- config.sql - The updated SQL query to execute
- config.limit - Maximum number of rows to return
- config.parameters - Updated parameter definitions for templated queries
- config.compute_profile - Updated compute profile identifier
Permissions
You can only update queries that:- Were created by your API key’s organization
- You have edit permissions for
Example: Updating Query SQL
Use Cases
Common scenarios for updating queries:- Optimize SQL - Improve query performance by refining the SQL
- Adjust row limits - Change the maximum number of rows returned
- Update parameters - Modify default parameter values
- Change compute profile - Switch to a different compute resource
Next Steps
After updating a query:- Run the updated query to verify the changes
- Check the results to ensure they match your expectations