Resume hosting service

Request Information
URL PATCH {{basepath}}/hosting/:hosting_id
CategoryHosting

Description

Allows you to update the hosting object.

the request body should contain a HostingUpdateRequest object.

Returns a HostingGetResponse object.

Url variables
:hosting_id{{hosting_id}}The hosting identifier
JSON
{
    "resumeService": true
}

Example responses

Resume hosting service
Request Method & URL
PATCH {{basepath}}/hosting/:hosting_id
Request Body:
{
    "resumeService": true
}
Url variables
:hosting_id{{hosting_id}}The hosting identifier
Response Code:
202 Accepted
Response Body:
{
    "responseId": "1_68f5c05c70980632ee27007cf08d8042246401b2",
    "status": "pending",
    "message": "Your update request is pending",
    "hosting": {
        "identifier": "1_aed1f3d95b069d5cdf88ef9d70392d359847e144",
        "status": "active",
        "domain": "example-2021-8-9-14-40-49.com",
        "info": {
            "serverPlan": "pro",
            "pleskUser": "h_00000001",
            "pleskFtpUser": "f_00000001",
            "pleskClientId": 282,
            "pleskHostingId": 235,
            "activeDomains": 1,
            "subdomains": 0,
            "diskspace": 0,
            "databases": 0,
            "traffic": 0,
            "trafficPrevDay": 0
        },
        "options": [
            {
                "name": "letsEncrypt",
                "value": "disabled",
                "arguments": []
            }
        ],
        "package": {
            "packageId": "pro",
            "type": "plesk",
            "status": "active",
            "spec": [
                {
                    "type": "diskspace",
                    "value": "10000"
                }
            ],
            "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"
            ],
            "usage": 1,
            "capacity": 20,
            "created": 1626259040,
            "modified": 1626259045
        },
        "suspended": false,
        "renewalDay": 9,
        "period": 1,
        "nextRenewal": "2021-08-10",
        "openJobCount": 1,
        "servicePeriod": 7,
        "serviceStatus": "cancelled",
        "serviceRenewalMonth": 8,
        "nextServiceRenewalDate": "2021-08-16",
        "created": 1628512849,
        "modified": 1628513788
    }
}
Error service is not cancelled
Request Method & URL
PATCH {{basepath}}/hosting/:hosting_id
Request Body:
{
    "resumeService": true
}
Url variables
:hosting_id{{hosting_id}}The hosting identifier
Response Code:
409 Conflict
Response Body:
{
    "responseId": "1_b254e340d3c4a90a2e51f1fea6f7bfa6a489619d",
    "status": "error",
    "errorCode": "invalid_input",
    "errorMessage": "The service is not cancelled so cannot be set to active"
}