v1

latestOpenAPI 3.0.22026-07-17171545.4 KB

Bind Snapquery To Results

When the same query is run multiple times, it is wasteful to repeat the actual query, both in terms of time and disk space.

For queries saved with the snapshot feature, this endpoint allows us to avoid rerunning the query.

Here we are just associating the snapshot data with the query_id of results in the database. When the frontend next sees a snapshot with this snapquery_id, the frontend will skip the query and instead load cached results.

get/bind_snapquery_to_results/{snapquery_id}

Path parameters

snapquery_idinteger required

Query parameters

query_idinteger required

Response

Successful Response

{"stackTrail":"paths:/bind_snapquery_to_results/{snapquery_id}:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}