| 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": "letsEncrypt",
"value": "enabled",
"arguments": [
"john@metaregistrar.com",
"includewww",
"test.{{hosting_domain}}"
]
}
]
}
PATCH {{basepath}}/hosting/:hosting_id/options
{
"options": [
{
"name": "letsEncrypt",
"value": "enabled",
"arguments": [
"john@example.com",
"includewww"
]
}
]
}
| :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": []
}
]
}
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"
}