URL | PATCH {{basepath}}/hosting/:hosting_id/option/:option |
---|---|
Category | Hosting |
Allows you to update hosting options
the request body should contain a HostingOptionUpdateRequest object.
Returns a HostingOptionGetResponse object.
:hosting_id | {{hosting_id}} | The hosting identifier |
---|---|---|
:option | malwareScanner |
{
"name": "malwareScanner",
"value": "enabled",
"malwarescanIntervalPeriod": 1,
"malwarescanIntervalUnit": "h",
"malwarescanAllowClientCleanup": false
}
PATCH {{basepath}}/hosting/:hosting_id/options
{
"name": "malwareScanner",
"value": "enabled",
"malwarescanIntervalPeriod": 1,
"malwarescanIntervalUnit": "m",
"malwarescanAllowClientCleanup": false
}
:hosting_id | {{hosting_id}} | The hosting identifier |
---|
202 Accepted
{
"responseId": "1_37ee18fcdc38d2dce068494d0f8a73e95562c1ae",
"status": "ok",
"message": "The option is attached",
"option": {
"name": "malwareScanner",
"value": "disabled",
"malwarescanIntervalPeriod": 1,
"malwarescanIntervalUnit": "m",
"malwarescanAllowClientCleanup": false,
"arguments": []
}
}
PATCH {{basepath}}/hosting/:hosting_id/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"
}