URL | PATCH {{basepath}}/hosting/:hosting_id/options |
---|---|
Category | Hosting |
Allows you to update hosting options
the request body should contain a HostingOptionsUpdateRequest object.
Returns a HostingOptionsResponse object.
:hosting_id | {{hosting_id}} | The hosting identifier |
---|
{
"options": [
{
"name": "malwareScanner",
"value": "enabled",
"malwarescanIntervalPeriod": 1,
"malwarescanIntervalUnit": "h",
"malwarescanAllowClientCleanup": false
}
]
}
PATCH {{basepath}}/hosting/:hosting_id/options
{
"options": [
{
"name": "malwareScanner",
"value": "enabled",
"malwarescanIntervalPeriod": 1,
"malwarescanIntervalUnit": "h",
"malwarescanAllowClientCleanup": false
}
]
}
:hosting_id | {{hosting_id}} | The hosting identifier |
---|
202 Accepted
{
"response_id": "1_85df60834d4de4d342bd0788f828f32d4726b6ec",
"status": "pending",
"message": "Your operation is pending execution",
"options": [
{
"name": "letsEncrypt",
"value": "disabled",
"arguments": []
},
{
"name": "malwareScanner",
"value": "disabled",
"malwarescanIntervalPeriod": 1,
"malwarescanIntervalUnit": "m",
"malwarescanAllowClientCleanup": false,
"arguments": []
}
]
}
PATCH {{basepath}}/hosting/:hosting_id/options
{
"options": [
{
"name": "letsEncrypt",
"value": "enabled",
"arguments": [
"john@example.com",
"includewww"
]
}
]
}
:hosting_id | {{hosting_id}} | The hosting identifier |
---|
405 Method Not Allowed
{
"response_id": "1_62d2f0918a1969e7ffd7aeb6b4d566767db45f5e",
"status": "error",
"error_code": "not_active",
"error_message": "This hosting is not in an active state so cannot be updated"
}