# Update
# General Settings
# HTTP Request:
POST https://api.serveravatar.com/organizations/{organization}/servers/{server}/settings/general
# Parameters:
parameters | Required | Type | Description |
---|---|---|---|
name | Yes | String | Update name of the Server |
hostname | Yes | Alphabet Numeric | Update hostname of your server |
php_cli_version | No | Float | If your web server is apache2 , nginx , or openlitespeed then Select any one PHP Cli Version: 7.0 , 7.1 , 7.2 , 7.3 , 7.4 , 8.0 , 8.1 , 8.2 or 8.3 |
ols_automatically_restart | Yes | Boolean | If your web server is openlitespeed then true or false . otherwise false |
timezone | Yes | String | Timezone For Example: UTC or Asia/Kolkata |
# Curl Request example:
# General Settings Curl Request
curl --request POST \
--url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/settings/general" \
--header 'content-type: application/json' \
--header 'accept: application/json' \
--header 'Authorization: <Your API Token>' \
--data '{
"name": "alex-client-server",
"hostname": "alex-client-server",
"php_cli_version": "7.4",
"ols_automatically_restart": false,
"timezone": "Asia/Kolkata"
}'
# Updated General Settings
- 200 (Ok)
{
"message": "General Settings Updated Successfully!!"
}
# PHP Settings
POST https://api.serveravatar.com/organizations/{organization}/servers/{server}/settings/default-php
# Parameters:
parameters | Required | Type | Description |
---|---|---|---|
default_php_version | Yes | Float | Select any one PHP Default Version: 7.0 , 7.1 , 7.2 , 7.3 , 7.4 , 8.0 , 8.1 , 8.2 or 8.3 . |
max_execution_time | Yes | Numeric | Update maximum execution time in seconds for PHP. |
max_input_time | Yes | Numeric | Update maximum input time in seconds for PHP. |
max_input_vars | Yes | Numeric | Update maximum input vars in seconds for PHP. |
memory_limit | Yes | String | Update memory in MB for PHP. |
post_max_size | Yes | String | Update post maximum size in MB for PHP. |
upload_max_filesize | Yes | String | Update upload maximum file in MB for PHP. |
# PHP Settings Curl Request
curl --request POST \
--url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/settings/default-php" \
--header 'content-type: application/json' \
--header 'accept: application/json' \
--header 'Authorization: <Your API Token>' \
--data '{
"default_php_version": "7.4",
"max_execution_time": 30,
"max_input_time": 60,
"max_input_vars": 1000,
"memory_limit": "128M",
"post_max_size": "8M",
"upload_max_filesize": "2M"
}'
# PHP Settings Update
- 200 (Ok)
{
"message": "PHP Settings Updated Successfully!"
}
# Organization Not Found
- 404 (Not Found)
{
"message": "Organization not found!"
}
# Server Not Found
- 404 (Not Found)
"message": "Server not found!"
# Server Error
- 500 (Internal Server Error)
{
"message": "Something went really wrong!"
}