Update domains add and update alias

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

Description

Allows you to update hosting options

the request body should contain a HostingOptionsUpdateRequest object.

Returns a HostingOptionsResponse object.

Url variables
:hosting_id{{hosting_id}}The hosting identifier
JSON
{
    "domains": [
        {
            "name": "johntest2023-05-15-999.nl",
            "alias": true,
            "aliasOf": "johntest2023-05-15.nl"
        }
    ]
}

Example responses

Create an alias
Request Method & URL
PATCH {{basepath}}/hosting/:hosting_id/domains
Request Body:
{
    "domains": [
        {
            "name": "johntest2023-05-15-999.nl",
            "alias": true,
            "aliasOf": "johntest2023-05-15.nl"
        }
    ]
}
Url variables
:hosting_id{{hosting_id}}The hosting identifier
Response Code:
201 Created
Response Body:
{
    "responseId": "1_28c9df1019dbf9b6c04b35a39ee4e13f48af0970",
    "status": "pending",
    "message": "The changes are pending",
    "domains": [
        {
            "name": "example-2022-4-26-13-50-36.com",
            "forward": false,
            "primary": true
        },
        {
            "name": "example-2022-4-21-10-32-30-extra33.com",
            "forward": true,
            "primary": false
        }
    ]
}
Update an alias
Request Method & URL
PATCH {{basepath}}/hosting/:hosting_id/domains
Request Body:
{
    "domains": [
        {
            "name": "johntest2023-05-15-999.nl",
            "alias": true,
            "aliasOf": "johntest2023-05-15.nl"
        }
    ]
}
Url variables
:hosting_id{{hosting_id}}The hosting identifier
Response Code:
201 Created
Response Body:
{
    "responseId": "1_28c9df1019dbf9b6c04b35a39ee4e13f48af0970",
    "status": "pending",
    "message": "The changes are pending",
    "domains": [
        {
            "name": "example-2022-4-26-13-50-36.com",
            "forward": false,
            "primary": true
        },
        {
            "name": "example-2022-4-21-10-32-30-extra33.com",
            "forward": true,
            "primary": false
        }
    ]
}