# Update
To update a control panel access user.
# HTTP Request:
PATCH https://api.serveravatar.com/organizations/{organization}/servers/{server}/hosting-user/{hosting_user}
# Parameter:
Parameters | Required | Type | Description |
---|---|---|---|
username | Yes | String | New username for the control panel access user. |
password | Yes | String | New password for the control panel access user. |
allowed_applications | No | Numeric | Number of allowed applications. |
allowed_databases | No | Numeric | Number of allowed databases. |
# Curl Request Example:
curl --request PATCH \
--url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/hosting-user/{hosting_user}" \
--header 'content-type: application/json' \
--header 'accept: application/json' \
--header 'Authorization: <YOUR API TOKEN>' \
--data '{
"username": "updated_username",
"password": "updated_password",
"allowed_applications": 10,
"allowed_databases": 10
}'
# Response:
# Updated:
- 200 (Ok)
{
"message": "Control panel user 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!"
}