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": "sub.example-2022-4-26-13-50-36.com"
}
]
}
PATCH {{basepath}}/hosting/:hosting_id/domains
{
"domains": [
{
"name": "example-2022-4-21-10-32-30-extra33.com",
"forward": true,
"forwardUrl": "https:\/\/www.metaregistrar.com",
"forwardType": "302"
}
]
}
:hosting_id | {{hosting_id}} | The hosting identifier |
---|
201 Created
{
"responseId": "1_3e1ddd7bcc3a9fb253b6e2571b9b88403efd7a5a",
"status": "pending",
"message": "The changes are pending",
"domains": [
{
"name": "example-2022-4-26-13-50-36.com",
"forward": false,
"primary": true
}
]
}
PATCH {{basepath}}/hosting/:hosting_id/domains
{
"domains": [
{
"name": "example-2022-4-21-10-32-30-extra33.com",
"forward": false
}
]
}
: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": "sub.example-2022-4-26-13-50-36-extra.com"
}
]
}
:hosting_id | {{hosting_id}} | The hosting identifier |
---|
201 Created
{
"responseId": "1_09c1d8f7cfd5af10a49e122ffc3b5b6535d0d48a",
"status": "pending",
"message": "The changes are pending",
"domains": [
{
"name": "example-2022-4-26-13-50-36.com",
"forward": false,
"primary": true
},
{
"name": "sub2.example-2022-4-26-13-50-36.com",
"forward": false,
"primary": false,
"subDomainOf": "example-2022-4-26-13-50-36.com"
},
{
"name": "example-2022-4-26-13-50-36-extra.com",
"forward": false,
"primary": false
}
]
}