---
title: "Update site settings."
method: PATCH
path: "/v1/sites/{id}/settings"
tags: ["Sites"]
---

# Update site settings.

`PATCH /v1/sites/{id}/settings`

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

## Path parameters

- `id` integer, required — ID of the Site you are interacting with

## Request body

- UpdateSettingsRequest
  - `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_id` integer — The ID of the default wp-admin SSO user
  - `wp_core_auto_updates` 0 | 1 | 2 — Control WordPress Core Auto-Updates: 0 - No auto-updates, 1 - Update all versions, 2 - Update minor/patch versions only
  - `wp_theme_auto_updates` 0 | 1
  - `wp_plugin_auto_updates` 0 | 1
  - `ssh_access` 0 | 1

## Response `200`

OK

- SiteSettingsResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` Settings
    - `current_php_version` '5.6' | '7.0' | '7.2' | '7.3' | '7.4' | '8.0' | '8.1' | '8.2' | '8.3' | '8.4' — Current PHP version the site uses
    - `wp_activity_log` 0 | 1 — Control WordPress Activity Log: 0 - No activity logging, 1 - Activity logging
    - `wp_admin_sso_default_user_id` integer — The ID of the default wp-admin SSO user
    - `wp_core_auto_updates` 0 | 1 | 2 — Control WordPress Core Auto-Updates: 0 - No auto-updates, 1 - Update all versions, 2 - Update minor/patch versions only
    - `wp_theme_auto_updates` 0 | 1
    - `wp_plugin_auto_updates` 0 | 1
    - `ssh_access` 0 | 1

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

[API](https://skmtc.net/rocket/apis/rocket-net-api.md) · [All operations](https://skmtc.net/rocket/apis/rocket-net-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rocket/rocket-net-api/versions/db0dcbbc5764/schema)
