v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Sites

Update site settings.

For given site change settings on cpanel that user can modify.

patch/v1/sites/{id}/settings

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888

Request body

new_php_version'5.6' | '7.0' | '7.2' | '7.3' | '7.4' | '8.0' | '8.1' | '8.2' | '8.3' | '8.4'

new php version for the site to use

wp_admin_sso_default_user_idinteger

The ID of the default wp-admin SSO user

wp_core_auto_updates0 | 1 | 2

Control WordPress Core Auto-Updates: 0 - No auto-updates, 1 - Update all versions, 2 - Update minor/patch versions only

wp_theme_auto_updates0 | 1
wp_plugin_auto_updates0 | 1
ssh_access0 | 1

Example request

{
  "wp_admin_sso_default_user_id": 3
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": [],
  "result": {
    "wp_admin_sso_default_user_id": 3
  }
}