# Wordpress

Install a wordpress in your application.

# HTTP Request:

PATCH https://api.serveravatar.com/servers/{server_id}/applications/{application_id}/auto-installer/wordpress

# Parameter:

Parameters Required Type Description
title Yes String The title of your WordPress site.
email No String The email of your WordPress site.
username Yes String The admin username of your WordPress site.
password Yes Numeric The admin password of your WordPress site.
database_server No Numeric Database server ID, if you want to remote database server.
database_name Yes Alpha-Numeric Name of the database.
install_litespeed_cache_plugin Yes Boolean If your web server openlitespeed then pass true/false, otherwise always false.

# Curl Request Example:

curl --request PATCH \
  --url "https://api.serveravatar.com/servers/623/applications/724/auto-installer/wordpress" \
  --header 'Content-Type: application/json' \
  --header 'Authorization: <YOUR API TOKEN>' \
  --data '{
    "title":"wordpressapp",
    "username":"username",
    "password":"username@123",
    "install_litespeed_cache_plugin":false,
    "database_name":"wordpress"
    }'

# Response:

# Install Wordpress

  • 200 (Ok)
{
  "message":"Application has been deployed in wordpress successfully!"
}

# Forbidden

  • 403 (Forbidden)
{
    "message": "You can not perform this action!"
}

# Application Not Found

  • 404 (Not Found)
{
    "message": "Application not found!"
}

# Server Not Found

  • 404 (Not Found)
{
    "message": "Server not found!"
}

# Server Error

  • 500 (Internal Server Error)
{
    "message": "Something went really wrong!"
}
Last Updated: 3/1/2023, 8:33:45 AM