Apply a query optimization recommendation
Applies the recommendation identified by `recommendation_id` for `client_name`. Optional JSON body may set `actor` for audit metadata. Requires the static admin key (`ATHENA_KEY_12`) and a connected `athena_logging` pool.
Path Parameters
int64Header Parameters
The static admin key configured as ATHENA_KEY_12. Authorization headers (Bearer <key>), X-API-Key, X-Athena-Key, or ?api_key= are also accepted.
Request Body
application/json
Optional actor label recorded with the apply action.
Response Body
application/json
application/json
curl -X POST "https://athena-cluster.com/admin/clients/string/query-optimizations/0/apply" \ -H "apikey: string" \ -H "Content-Type: application/json" \ -d '{}'{
"client_name": "string",
"result": {}
}{
"status": "error",
"message": "string",
"error": "string"
}List query optimization recommendations for a client GET
Returns stored recommendations from the logging database with optional status filter and pagination. Requires the static admin key (`ATHENA_KEY_12`) and a connected `athena_logging` pool.
Refresh query optimization recommendations for a client POST
Recomputes recommendations for the client and returns the new run plus rows. Requires the static admin key (`ATHENA_KEY_12`) and a connected `athena_logging` pool.