Athena
ClientsClient_nameQuery optimizationsRecommendation_idApply

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.

POST
/admin/clients/{client_name}/query-optimizations/{recommendation_id}/apply

Path Parameters

client_name*string
recommendation_id*integer
Formatint64

Header Parameters

apikey*string

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

actor?string

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": {}
}
Empty
{
  "status": "error",
  "message": "string",
  "error": "string"
}