---
title: "Install new WordPress plugins to site"
method: POST
path: "/v1/sites/{id}/plugins"
tags: ["Plugins"]
---

# Install new WordPress plugins to site

`POST /v1/sites/{id}/plugins`

Endpoint that can be used to install one or more WordPress plugins for given site.

## Path parameters

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

## Request body

- InstallPluginsRequest
  - `plugins` string — Comma separated list of plugins to install. Cannot be combined with 'custom_url'
  - `activate` boolean — If all the plugins that are being installed should be activated
  - `custom_url` string — If a plugin should be downloaded from a custom URL rather than the wordpress.org plugin library, this is the download URL. Cannot be combined with 'plugins'

## Response `200`

OK

- InstallPluginsResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `result` object[]
    - `name` string — Plugin name/slug
    - `version` string — Version of the plugin that is installed
    - `activated` boolean — If the plugin is actived
    - `note` '404: Plugin not found' | 'PHP Error prevented activation: <error>' | 'PHP Error prevented installation: <error>' | 'PHP version mismatch prevented activation.' | 'PHP version mismatch prevented installation.' | 'Plugin already installed' | 'Plugin installed from custom url' | 'Plugin '<plugin_name>' activated.' | 'Unable to install plugin. PHP Fatal error. Try installing just <plugin_name>' | '' — Note about whether or not the plugin was installed and activated ($ indicates a placeholder variable)

## 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/revisions/db0dcbbc5764/schema)
