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.

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
}