Knowledge Base
Categories: Single Domain Windows Hosting API
Change the Primary Domain for a Single Domain Windows Hosting Order Using the API
Summary
When you want to change the primary domain associated with a Single Domain Windows Hosting order using the API. This article explains the required order and domain inputs and how to submit the primary domain change.
Description
Changes the primary domain name for an existing Single Domain Windows Hosting order.
Parameters
| Name | Data Type | Required / Optional | Description |
|---|---|---|---|
auth-userid | Integer | Required | Your Reseller ID used to authenticate the API request. |
api-key | String | Required | Your API key used to authenticate the API request. |
order-id | Integer | Required | The Order ID for which the primary domain is to be modified. |
new-domain-name | String | Required | The new primary domain name. |
HTTP Method
POST
Example Test URL Request
US, Texas Server
https://test.httpapi.com/api/singledomainhosting/windows/us/change-domain-name.json?auth-userid=0&api-key=key&order-id=0&new-domain-name=domain.com
India Server
https://test.httpapi.com/api/singledomainhosting/windows/in/change-domain-name.json?auth-userid=0&api-key=key&order-id=0&new-domain-name=domain.com
Response
Returns a map containing the execution details of the change primary domain operation.
Did you find this article helpful?