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
:
site_id
is fbab4927-e354-4044-b226-29ac0fbd20ca
environment_id
is c84ce214-69b9-4a32-8e67-880672cf1d38
company_id
is bdd25d71-5706-4890-870f-1adda17c505d
Successfully found WP plugins
No or invalid API key provided to the request
Could not find the WP plugins or the user does not have permissions to retrieve data
Error occurred while retrieving WP plugins
{- "environment": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15b2",
- "container_info": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15c3",
- "wp_plugins": {
- "data": [
- {
- "name": "akismet",
- "title": "Akismet Anti-Spam: Spam Protection",
- "status": "active",
- "version": "1.0.0",
- "update": "available",
- "update_version": "1.0.1",
- "update_status": "updated"
}
]
}
}
}
}
Updating of plugin started. Check MyKinsta for status
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
Error occurred while updating a plugin
{- "name": "akismet",
- "update_version": "5.3"
}
{- "operation_id": "wp-plugin:update-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "message": "Updating WordPress plugin in progress",
- "status": 202
}
Successfully updated WP plugins
No or invalid API key provided to the request
Could not find the WP themes or the user does not have permissions to retrieve data
Error occurred while bulk-updating WP plugins
{- "plugins": [
- {
- "name": "akismet"
}
]
}
{- "operation_id": "wp-plugins:bulk-update-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "message": "Bulk-updating WordPress plugins in progress",
- "status": 202
}
Successfully found WP themes
No or invalid API key provided to the request
Could not find the WP themes or the user does not have permissions to retrieve data
Error occurred while retrieving WP themes
{- "environment": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15b2",
- "container_info": {
- "id": "54fb80af-576c-4fdc-ba4f-b596c83f15c3",
- "wp_themes": {
- "data": [
- {
- "name": "twentytwentythree",
- "title": "Twenty Twenty Three",
- "status": "active",
- "version": "1.0.0",
- "update": "available",
- "update_version": "1.0.1",
- "update_status": "updated"
}
]
}
}
}
}
Updating of theme started. Check MyKinsta for status
One or more of the required parameters were not provided to the request
No or invalid API key provided to the request
Error occurred while updating a theme
{- "name": "akismet",
- "update_version": "5.3"
}
{- "operation_id": "wp-theme:update-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "message": "Updating WordPress theme in progress",
- "status": 202
}
Successfully updated WP themes
No or invalid API key provided to the request
Could not find the WP themes or the user does not have permissions to retrieve data
Error occurred while bulk-updating WP themes
{- "themes": [
- {
- "name": "twenty-twenty-three"
}
]
}
{- "operation_id": "wp-themes:bulk-update-54fb80af-576c-4fdc-ba4f-b596c83f15a1",
- "message": "Bulk-updating WordPress themes in progress",
- "status": 202
}