Loading...

Knowledge Base

Add Child Name Servers Using the API

When you want to add child name servers for a domain registration order using the API. This article explains the required parameters, IP address association, and API request details for child name server creation.

Adding Child Name Servers

Description

Adds Child Name Servers for the specified Domain Registration Order.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
order-idIntegerRequiredOrder Id of the Domain Registration Order for which you want to add the Child Name Servers.
cnsStringRequiredChild Name Servers name that you want to add.
ipArray of StringsRequiredIP addresses that you want to associate with the Child Name Servers.

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/domains/add-cns.json?auth-userid=0&api-key=key&order-id=0&cns=ns1.domain.com&ip=0.0.0.0&ip=1.1.1.1

Response

Returns a hash map containing the below details:

  • Domain Name (description)

  • Order ID of the Domain Registration Order (entityid)

  • Action Type (actiontype)

  • Description of the Child Name Server Addition Action (actiontypedesc)

  • Action ID of the Child Name Server Addition Action (eaqid)

  • Child Name Server Addition Action Status (actionstatus)

  • Description of the Child Name Server Addition Action Status (actionstatusdesc)

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.