Follow the plan's tuning policy, or opt this site out (off reverts)
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/sites/{id}/tune/policyFollow the plan's tuning policy, or opt this site out (off reverts)
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
policystring requiredSite: inherit or off. Server: auto or off.
Example
{
"policy": "string"
}Responses
200 OK
Content type: application/json
A site's automatic tuning (ADR 0116)
policystring requiredAllowed values:"inherit""off"plan_policystring requiredAllowed values:"auto""suggest""off"effectivestring requiredAllowed values:"auto""suggest""off"plan_warmboolean requiredstatestring required'' (never), applied, rolled_back, failed, reverted
versioninteger requiredstacksarray<string> requiredidstring requiredstatic_cache, immutable_assets, compression, no_compress_auth, kernel_cache, pool_warm, pool_suspend, pool_recycle, pool_64bit, php_opcache, php_realpath, php_fastcgi, aspnet_compilation, asp_engine, asp_session_off, core_inprocess, php_open_basedir_off (shown only: the site's or plan's choice, never switched by the tuner)
appliedboolean requiredreasonstring optionalWhy not applied: not_this_stack, needs_iis_performance, plan_not_warm, user_choice, nothing_found, overridden_by_app, session_in_use
detailstring optional
hashstring requiredwantobject optional
up_to_dateboolean requiredapplied_atstring (date-time) | null optionalprobed_atstring (date-time) | null optionallast_errorstring optionalblocked_untilstring (date-time) | null optionaloverriddenarray<string> | null optionaldriftedarray<string> | null optionalidstring requiredsite_idstring requiredatstring (date-time) requiredkindstring requiredapplied, rolled_back, reverted, failed, drift, overridden
detailobject requiredbefore_ms, after_ms, cold_ms (time to first byte), source, items, reason
Example
{
"policy": "inherit",
"plan_policy": "auto",
"effective": "auto",
"plan_warm": true,
"state": "string",
"profile": {
"version": 0,
"stacks": [
"string"
],
"items": [
{
"id": "string",
"applied": true,
"reason": "string",
"detail": "string"
}
],
"hash": "string",
"want": {}
},
"up_to_date": true,
"applied_at": "2026-01-01T00:00:00Z",
"probed_at": "2026-01-01T00:00:00Z",
"last_error": "string",
"blocked_until": "2026-01-01T00:00:00Z",
"overridden": [
"string"
],
"drifted": [
"string"
],
"events": [
{
"id": "string",
"site_id": "string",
"at": "2026-01-01T00:00:00Z",
"kind": "string",
"detail": {}
}
]
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required