Install WordPress
Install WordPress system on this domain.
POST/api/servers/{server}/sites/{id}/wordpress
Install WordPress
Installs WordPress on the specified site with optional database creation.
Optional attributes
- Name
create_database- Type
- boolean
- Description
Whether to automatically create a database for WordPress.
Request
POST
/api/servers/{server}/sites/{id}/wordpresscurl -X POST "https://ploi.io/api/servers/{server}/sites/{id}/wordpress" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"create_database": true}'
Response
{
"data": {
"id": 90,
"domain": "domain.com",
"web_directory": "/public",
"wordpress": true,
"laravel": false,
"project_root": "/",
"last_deploy_at": "2018-09-14 20:43:11",
"created_at": "2018-09-14 11:40:01"
}
}