API Commands
[All Commands]

Order: ModifyNS_Domain



order type ModifyNS_Domain


Modify existing domain to new values. For DNSSEC extension please see full specification here.

Input Parameters ($params):

array ns
host hosts Hostnames of nameservers
string nsset Nameserver Set (only for FRED registries (.CZ,.EE,...))

Sample:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/soap/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);

$token $response["data"]["ssid"];

unset(
$params);

$hosts = array("ns.domena.com","ns2.domena.com",
    
"ns3.domena.com","ns4.domena.com",
    
"ns5.domena.com");

foreach(
$hosts as $host){
    
$ns[]["hostname"] = $host;
}

$params = array ( 
    
"data" => array (
    
"ssid" => $token,
    
"order" => array (
        
"type" => "ModifyNS_Domain",
        
"domain" => "domena-12.or.af",
        
"params" => array (
            
"ns" => array (
                
"hosts" => $ns,
            ),
        )
    )
     )
);

$response $client->__call("Make_Order",$params);

?>
OUTPUT: [status] => ok [data] => Array ( [orderid] => 24 )

API Manual - version from 2023-05-12 12:15:50