Data -- Queries
Update Query
Updates the display name, SQL, or schedule of an existing query. Fields omitted from the request keep their current values. Sending queryType: MATERIALIZED converts a plain query into a materialized one. Sending inputQueryRefId re-resolves the referenced query's SQL and stores the fresh snapshot as this query's inputQuery — use it to re-sync a materialized query with its source. To move a query to a different folder use the Update Query Path endpoint.
put/data/projects/{projectId}/queries/{queryId}
Request
- Base URL: https://partner.peaka.studio/api/v1
- URL: https://partner.peaka.studio/api/v1/data/projects/{projectId}/queries/{queryId}
- Auth: HTTP bearer
Path parameters
projectIdstring required
ID of the Project
queryIdstring required
ID of the Query
Query parameters
checkSchemaExistsboolean
Request body
Example request
{
"displayName": "sampleQuery",
"schedule": {
"type": "cron",
"cronExpression": "0 0 * * *",
"timezone": "UTC"
},
"inputQueryRefId": "709922802836177297",
"path": "/reports/monthly"
}Response
Query updated
Example response
{
"schedule": {
"type": "cron",
"cronExpression": "0 0 * * *",
"timezone": "UTC"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.