API referenceSections

Set the automatic update policy

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/sites/{id}/wordpress/policy

Set the automatic update policy

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

  • core string required
    Allowed values: "off" "minor" "all"
  • plugins boolean required
  • themes boolean required
  • hour integer required

    UTC

    • minimum 0
    • maximum 23
  • staging boolean required
Example
{
  "core": "off",
  "plugins": true,
  "themes": true,
  "hour": 0,
  "staging": true
}

Responses

200 Saved

Content type: application/json

Fields of WPPolicy are shown above.

Example
{
  "core": "off",
  "plugins": true,
  "themes": true,
  "hour": 0,
  "staging": true
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required