WordPress Site Themes & Plugins

With the site themes and plugins endpoint, you can get a list of your site's plugins and themes. You can also send a PUT request to update your plugins or themes individually or as a bulk update.

You can obtain the environment_id using the GET request with the WordPress Site Environments endpoint.

The environment_id is also shown after the site_id in the URL in MyKinsta when you access the environment, for example in the URL https://my.kinsta.com/sites/details/fbab4927-e354-4044-b226-29ac0fbd20ca/c84ce214-69b9-4a32-8e67-880672cf1d38?idCompany=bdd25d71-5706-4890-870f-1adda17c505d:

  • The site_id is fbab4927-e354-4044-b226-29ac0fbd20ca
  • The environment_id is c84ce214-69b9-4a32-8e67-880672cf1d38
  • The company_id is bdd25d71-5706-4890-870f-1adda17c505d

Get list of WP Site plugins

SecuritybearerAuth
Request
path Parameters
env_id
required
string <uuid>
Example: 54fb80af-576c-4fdc-ba4f-b596c83f15a1
Responses
200

Successfully found WP plugins

401

No or invalid API key provided to the request

404

Could not find the WP plugins or the user does not have permissions to retrieve data

500

Error occurred while retrieving WP plugins

get/sites/environments/{env_id}/plugins
Request samples
Response samples
application/json
{
  • "environment": {
    }
}

Update WP Plugin

SecuritybearerAuth
Request
path Parameters
env_id
required
string <uuid>
Example: 54fb80af-576c-4fdc-ba4f-b596c83f15a1
Request Body schema: application/json
name
required
string
update_version
required
string
Responses
202

Updating of plugin started. Check MyKinsta for status

400

One or more of the required parameters were not provided to the request

401

No or invalid API key provided to the request

500

Error occurred while updating a plugin

put/sites/environments/{env_id}/plugins
Request samples
application/json
{
  • "name": "akismet",
  • "update_version": "5.3"
}
Response samples
application/json
{
  • "operation_id": "wp-plugin:update-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
  • "message": "Updating WordPress plugin in progress",
  • "status": 202
}

Bulk update WP Site plugins

SecuritybearerAuth
Request
path Parameters
env_id
required
string <uuid>
Example: 54fb80af-576c-4fdc-ba4f-b596c83f15a1
Request Body schema: application/json
required
Array of objects
Responses
200

Successfully updated WP plugins

401

No or invalid API key provided to the request

404

Could not find the WP themes or the user does not have permissions to retrieve data

500

Error occurred while bulk-updating WP plugins

put/sites/environments/{env_id}/plugins/bulk-update
Request samples
application/json
{
  • "plugins": [
    ]
}
Response samples
application/json
{
  • "operation_id": "wp-plugins:bulk-update-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
  • "message": "Bulk-updating WordPress plugins in progress",
  • "status": 202
}

Get list of WP Site themes

SecuritybearerAuth
Request
path Parameters
env_id
required
string <uuid>
Example: 54fb80af-576c-4fdc-ba4f-b596c83f15a1
Responses
200

Successfully found WP themes

401

No or invalid API key provided to the request

404

Could not find the WP themes or the user does not have permissions to retrieve data

500

Error occurred while retrieving WP themes

get/sites/environments/{env_id}/themes
Request samples
Response samples
application/json
{
  • "environment": {
    }
}

Update WP Theme

SecuritybearerAuth
Request
path Parameters
env_id
required
string <uuid>
Example: 54fb80af-576c-4fdc-ba4f-b596c83f15a1
Request Body schema: application/json
name
required
string
update_version
required
string
Responses
202

Updating of theme started. Check MyKinsta for status

400

One or more of the required parameters were not provided to the request

401

No or invalid API key provided to the request

500

Error occurred while updating a theme

put/sites/environments/{env_id}/themes
Request samples
application/json
{
  • "name": "akismet",
  • "update_version": "5.3"
}
Response samples
application/json
{
  • "operation_id": "wp-theme:update-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
  • "message": "Updating WordPress theme in progress",
  • "status": 202
}

Bulk update WP Site themes

SecuritybearerAuth
Request
path Parameters
env_id
required
string <uuid>
Example: 54fb80af-576c-4fdc-ba4f-b596c83f15a1
Request Body schema: application/json
required
Array of objects
Responses
200

Successfully updated WP themes

401

No or invalid API key provided to the request

404

Could not find the WP themes or the user does not have permissions to retrieve data

500

Error occurred while bulk-updating WP themes

put/sites/environments/{env_id}/themes/bulk-update
Request samples
application/json
{
  • "themes": [
    ]
}
Response samples
application/json
{
  • "operation_id": "wp-themes:bulk-update-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
  • "message": "Bulk-updating WordPress themes in progress",
  • "status": 202
}