URL | PATCH {{basepath}}/hosting/:hosting_id/domains |
---|---|
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 |
---|
{
"domains": [
{
"name": "johntest2023-05-15-999.nl",
"alias": true,
"aliasOf": "johntest2023-05-15.nl"
}
]
}
PATCH {{basepath}}/hosting/:hosting_id/domains
{
"domains": [
{
"name": "johntest2023-05-15-999.nl",
"alias": true,
"aliasOf": "johntest2023-05-15.nl"
}
]
}
:hosting_id | {{hosting_id}} | The hosting identifier |
---|
201 Created
{
"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
}
]
}
PATCH {{basepath}}/hosting/:hosting_id/domains
{
"domains": [
{
"name": "johntest2023-05-15-999.nl",
"alias": true,
"aliasOf": "johntest2023-05-15.nl"
}
]
}
:hosting_id | {{hosting_id}} | The hosting identifier |
---|
201 Created
{
"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
}
]
}