---
title: "Update a site's platform plugins"
url: https://docs.corefinity.com/api/reference/runtime/update-site-platform-plugins
type: endpoint
last_updated: 2026-11-13
feature: platform-plugins
related:
  - https://docs.corefinity.com/guides/sites/software-and-services/platform-plugins.md
  - https://docs.corefinity.com/mcp/tools/corestack_site_platform_plugins_set.md
---
# Update a site's platform plugins

Turns the platform's own plugins on or off for a WordPress site. Only the site's managing agency and Corefinity may change it. A turn-off needs `confirm_off: true`, sent once the person has agreed to what `stops` lists.

```http
PUT /api/corestack/sites/{site}/platform-plugins
```

- Scope: `write`
- Two-factor: required on your account (all)
- Rate limit: 10 a minute
- Long-running: answers with an operation to poll
- Try it in the console: off. It has not been cleared for the console. Copy the request and run it yourself when you are sure.

## Path parameters

- `site` (integer, required): The id of a site row. A website's production site and each of its environments has its own id. Digits only.

## Body

- `confirm_off` (boolean): Send true with `enabled: false`, once the person has read `stops` and agreed. Not needed to turn them on. Defaults to `false`.
- `enabled` (boolean, required): True to turn the platform plugins on, false to turn them off.

## Request

### curl

```bash
curl -X PUT https://manage.corefinity.com/api/corestack/sites/1042/platform-plugins \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "confirm_off": true,
    "enabled": false
  }'
```

### PHP

```php
use Illuminate\Support\Facades\Http;

$response = Http::withToken(env('COREFINITY_TOKEN'))
    ->acceptJson()
    ->put('https://manage.corefinity.com/api/corestack/sites/1042/platform-plugins', [
        'confirm_off' => true,
        'enabled' => false,
    ]);

$data = $response->json();
```

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/platform-plugins', {
  method: 'PUT',
  headers: {
    Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    confirm_off: true,
    enabled: false,
  }),
});

// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);
```

### Python

```python
import os
import requests

res = requests.put(
    "https://manage.corefinity.com/api/corestack/sites/1042/platform-plugins",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "confirm_off": True,
        "enabled": False,
    },
)

data = res.json() if res.content else None
```

## Responses

### 200 The setting after the request. On a production site `operation` is the change being applied: follow `operation.id` until it completes.

```json
{
  "changed": true,
  "operation": {
    "applied_at": null,
    "can_retry": false,
    "cluster": {
      "id": 1017,
      "name": "Northwind UK 1"
    },
    "committed_at": "2026-11-03T09:16:40+00:00",
    "completed_at": null,
    "created_at": "2026-11-03T09:16:40+00:00",
    "environment": {
      "env_id": "rs-northwind-journal-harbourandfinch-example-com",
      "hostname": "journal-harbourandfinch-example-com.northwind.cfstack.example.net",
      "id": 1051,
      "name": "Production",
      "role": "production",
      "role_label": "Production",
      "slug": "production"
    },
    "error": null,
    "failure_reason": null,
    "from_version": null,
    "hot": false,
    "id": 5120,
    "notes": [],
    "parent_operation_id": null,
    "requested_by": {
      "id": 2012,
      "name": "Daniel Reyes"
    },
    "result": null,
    "result_state": "none",
    "retried_by_operation_id": null,
    "retries_operation_id": null,
    "retry_requires": null,
    "scope": "site",
    "site": {
      "domain": "journal.harbourandfinch.example.com",
      "id": 1051
    },
    "status": "committed",
    "status_label": "In progress",
    "steps": [
      {
        "key": "saved",
        "label": "Saved",
        "state": "done"
      },
      {
        "key": "applied",
        "label": "Applied by the platform",
        "state": "current"
      }
    ],
    "subject": null,
    "summary": "Platform plugins",
    "to_version": null,
    "type": "platform_plugins_key",
    "type_label": "Platform plugins"
  },
  "platform_plugins": {
    "applies": true,
    "applying": true,
    "can_change": true,
    "changed_at": "2026-11-03T09:16:40+00:00",
    "cut_over": false,
    "enabled": false,
    "keyed": true,
    "layout": "classic",
    "layout_label": "Standard WordPress",
    "needs_attention": null,
    "off_note": null,
    "off_refused": null,
    "off_warning": null,
    "reason": "Needs the platform plugin, which is turned off for this site.",
    "refused_functions": [
      "wp_login_link"
    ],
    "runtime_ready": true,
    "stops": [
      "One-click login to wp-admin from the Control Panel",
      "Viewing the site on its platform address: WordPress sends visitors to its own address instead",
      "Before go-live: email, payments and outgoing requests are no longer held back",
      "Before go-live: the platform address is no longer kept out of caches",
      "The Control Panel's From address for email sent with PHP mail",
      "On a preview environment: email from SMTP plugins is no longer caught, and known live integrations are no longer blocked"
    ]
  }
}
```

### 401 No token, or a token that is not valid.

```json
{
  "message": "Unauthenticated."
}
```

### 403 The token lacks the `write` scope (`scope_required`), two-factor authentication is required and not set up, your account has no company that can use Managed Clusters (`company_not_enabled`), or you are not the site's managing agency (`forbidden`).

```json
{
  "code": "company_unavailable",
  "message": "Your company is unavailable.",
  "reason": "company_unavailable"
}
```

### 404 The id does not exist, or it is something you cannot see. Both answer the same body.

```json
{
  "message": "Not found."
}
```

### 409 The site is not WordPress (`wrong_platform`), its software cannot turn the plugins off yet (`runtime_lacks_capability`), it is past its go-live hold (`site_cut_over`), another change, deployment, restore or command is running on it (`busy`, `command_running` and their like), it is not running (`not_running`), an earlier command on it has not been confirmed stopped (`exec_unresolved`), or another control panel manages it (`managed_elsewhere`). Nothing was changed.

```json
{
  "code": "busy",
  "message": "Another change to this site is in progress. Wait for it to finish.",
  "reason": "busy"
}
```

### 422 A turn-off was not confirmed (`confirm`, with `stops`), or a field is not a boolean (`invalid`).

```json
{
  "code": "confirm",
  "message": "Turning the platform plugins off stops what is listed in stops. Send confirm_off: true once the person has agreed.",
  "reason": "confirm",
  "stops": [
    "One-click login to wp-admin from the Control Panel",
    "Viewing the site on its platform address: WordPress sends visitors to its own address instead",
    "Before go-live: email, payments and outgoing requests are no longer held back",
    "Before go-live: the platform address is no longer kept out of caches",
    "The Control Panel's From address for email sent with PHP mail",
    "On a preview environment: email from SMTP plugins is no longer caught, and known live integrations are no longer blocked"
  ]
}
```

### 429 Too many requests (`rate_limited`). Wait for the number of seconds in `Retry-After`, which `retry_after_seconds` repeats.

```json
{
  "code": "rate_limited",
  "message": "Too many requests. Try again in 60 seconds.",
  "reason": "rate_limited",
  "retry_after_seconds": 60
}
```

### 503 The site could not be changed (`unavailable`), could not say whether it is past its go-live hold (`cut_over_unknown`), its cluster could not be reached (`connect_failed`), or Corefinity has switched site commands off for the moment (`switched_off`). Nothing was changed; try again later.

```json
{
  "code": "connect_failed",
  "message": "The cluster could not be reached",
  "reason": "connect_failed"
}
```

## If it is refused

| Status | Reason | What to do |
|---|---|---|
| 401 |  | Send a valid token as `Authorization: Bearer <token>`. |
| 403 | `company_unavailable` | Your company is unavailable. |
| 403 | `forbidden` | The person is not allowed to do this. |
| 403 | `scope_required` | Use a token with the scope named in `scope`. |
| 403 | `two_factor_required` | Turn on two-factor on your account, then send again. |
| 404 |  | Check the id. You see only what your account can reach. |
| 409 | `busy` | Another operation is running on the site. Wait for it to finish. |
| 409 | `command_running` | Another action or command is still running on the site. Wait for it to finish, then try again. |
| 409 | `exec_unresolved` | An earlier command on the site has not been confirmed stopped. Contact support. |
| 409 | `managed_elsewhere` | This site is read-only here. Change it in the control panel that manages it. |
| 409 | `not_running` | The site, environment or deployment is not running. Read the message: where it can be started or will recover, start it or wait, then try again. |
| 409 | `runtime_lacks_capability` | The site's runtime does not support this yet. It is available after the site's platform update. |
| 409 | `site_cut_over` | The site is past its go-live hold, so its platform plugins can no longer be turned off. Nothing to change. |
| 409 | `wrong_platform` | This is not available for the site's platform. Use it on a site of the platform it is for. |
| 422 | `confirm` | The action needs an explicit confirmation field. Ask the person, then send it. |
| 422 | `invalid` | Fix the field named in `field`; `errors` says why. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |
| 503 | `connect_failed` | The cluster could not be reached. |
| 503 | `cut_over_unknown` | Whether the site is past its go-live hold could not be confirmed, so nothing was changed. Try again in a minute. |
| 503 | `unavailable` | This is not available for the site or environment, or not at the moment. Read the message; try again later where it says so, or contact support. |
| 503 | `switched_off` | Corefinity has switched this action off for the moment. Try again later. |

## The same task elsewhere

- Guide: [Platform plugins](https://docs.corefinity.com/guides/sites/software-and-services/platform-plugins.md)
- MCP tool: [`corestack_site_platform_plugins_set`](https://docs.corefinity.com/mcp/tools/corestack_site_platform_plugins_set.md)
