- Introduction
- Auth
- Bolts
- Environments
- Git
- Domains
- Logs
- List EnvironmentsGET
- Create EnvironmentPOST
- Get EnvironmentGET
- Update EnvironmentPATCH
- Delete EnvironmentDELETE
- Purge Environment CachePOST
- List Environment CronjobsGET
- Get Environment StatisticsGET
- Get Environment Available SettingsGET
- Get Environment PHP VersionsGET
- Get Environment UsageGET
- Get Environment SSH AccessesGET
- Create Environment SSH AccessPOST
- Remove Environment SSH AccessDELETE
- List Environment DatabasesGET
- Toggle Environment Dev ModePOST
- Environment Install WordpressPOST
- Environment Optimize WordpressPOST
- Locations
- Databases
- Cronjobs
- SSH Keys
- Certificates
- Billing
- Profile
Environment Install Wordpress
POST
https://api.servebolt.io/v1/environments/{id}/install-wordpress
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
string
required
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Body Params application/json
data
object
required
attributes
object
required
Example
{
"data": {
"attributes": {
"dbName": "wpsite",
"dbUser": "wpsite",
"dbPassword": "UdauuhAUDHIuisAD23"
}
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.servebolt.io/v1/environments//install-wordpress' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"data":{
"attributes":{
"dbName": "wpsite",
"dbUser": "wpsite",
"dbPassword": "UdauuhAUDHIuisAD23"
}
}
}'
Responses
🟢200OK
text/plain
Body
object {0}
Example
{
"data": {
"id": "a503d93d-eb5c-4820-9013-52d3ddf97a20",
"type": "wordpress",
"attributes": {
"url": "https://example.com",
"title": "WordPress Site",
"adminUser": "admin.user",
"adminEmail": "admin@example.com",
"adminPassword": "UvALYwQdvpaDmq59e6T7sOgGqQz5fcmVV2"
}
}
}
🟠422Parameter Error
Modified at 2024-05-29 14:19:17