Loading...

Knowledge Base

Change the Primary Domain for a Single Domain Linux Hosting Order Using the API

When you want to change the primary domain for an existing Single Domain Linux Hosting order using the API. This article explains the required parameters and API request details for updating the primary domain name.

 

Description

Changes the primary domain name for an existing Single Domain Linux Hosting Order.

Parameters

NameData TypeRequired / Optional
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
order-idIntegerRequiredThe OrderId for which the primary domain is to be changed.
new-domain-nameStringRequiredThe new primary domain name.

HTTP Method

POST

Example Test URL Request

US, Texas Server https://test.httpapi.com/api/singledomainhosting/linux/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/linux/in/change-domain-name.json?auth-userid=0&api-key=key&order-id=0&new-domain-name=domain.com

Response

Returns a map of the execution details of the change primary domain operation.