Install WordPress plugins
Install one or more plugins on an existing WordPress installation.
Install one or more plugins on an existing WordPress installation.
Provide the WordPress installation (software) identifier in the path. It can
be obtained from GET /api/hosting/v1/wordpress/installations (the id
field). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin
slugs available for installation.
This operation is asynchronous: a successful response only means the install job has been queued, not that the plugins are ready.
API Token authentication
u123456789WordPress installation (software) identifier
1232456789Pattern: ^[0-9]+$Plugin slugs to install. Use GET /api/hosting/v1/wordpress/plugins to discover available slugs.
["akismet","hello-dolly"]Success empty response
Request acceptedUnauthenticated response
Validation error response
Error response
POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"plugins": [
"akismet",
"hello-dolly"
]
}{
"message": "Request accepted"
}Last updated
Was this helpful?