| URL | PATCH {{basepath}}/hosting/:hosting_id |
|---|---|
| Category | Hosting |
Allows you to update the hosting object.
the request body should contain a HostingUpdateRequest object.
Returns a HostingGetResponse object.
| :hosting_id | {{hosting_id}} |
|---|
{
"makeHosting": true
}
PATCH {{basepath}}/hosting/:hosting_id
{
"makeHosting": true
}
| :hosting_id | {{hosting_id}} |
|---|
202 Accepted
{
"responseId": "1_798f462e0057674721e0cc8adf78affed0e3c775",
"status": "pending",
"message": "Your update request is pending",
"hosting": {
"identifier": "1_2093ce9371951cb6fa03fa8c01ac8ec3ec15cd0a",
"status": "active",
"domain": "example-2022-3-30-9-40-42.com",
"info": {
"serverPlan": "basic",
"pleskUser": "h_00000017",
"pleskFtpUser": "f_00000017",
"pleskClientId": 310,
"pleskHostingId": 268,
"activeDomains": 1,
"subdomains": 0,
"diskspace": 0,
"databases": 0,
"traffic": 0,
"trafficPrevDay": 0
},
"options": [
{
"name": "letsEncrypt",
"value": "disabled",
"arguments": []
}
],
"package": {
"packageId": "basic",
"type": "plesk",
"status": "active",
"spec": [
{
"type": "diskspace",
"value": "1000"
}
],
"created": 1626272615,
"modified": 1626272619
},
"server": {
"identifier": "pleskdev",
"hostname": "pleskdev.yourdomainprovider.net",
"type": "plesk",
"status": "active",
"ips": [
{
"address": "213.249.70.50",
"version": 4
},
{
"address": "2a01:448:1004::50",
"version": 6
}
],
"availablePackages": [
"basic",
"pro",
"basic_protest"
],
"usage": 20,
"capacity": 20,
"created": 1626259040,
"modified": 1626259045
},
"suspended": false,
"suspendedDomain": false,
"renewalDay": 30,
"period": 1,
"nextRenewal": "2022-03-31",
"openJobCount": 1,
"servicePeriod": 7,
"serviceStatus": "active",
"serviceRenewalMonth": 3,
"nextServiceRenewalDate": "2022-04-06",
"created": 1648626042,
"modified": 1648715341
}
}
PATCH {{basepath}}/hosting/:hosting_id
{
"makeHosting": true
}
| :hosting_id | {{hosting_id}} |
|---|
409 Conflict
{
"responseId": "1_b19b718640608a91da987e928737bb51c7639a21",
"status": "error",
"errorCode": "would_not_change_anything",
"errorMessage": "The hosting is not currently a forward"
}