Questa chiamata consente di inviare un comando per aggiornare i dati di contatto del dominio.
Parametri della richiesta
Parametro | Tipo | Descrizione | Richiesto |
---|---|---|---|
domain | Stringa | Il nome del dominio per cui vuoi modificare i dati | Richiesto |
contactdetails | Array | Un array contenente tutti i dati dei contatti, sia quelli da aggiornare che quelli da mantenere. I dati devono essere mandati seguendo lo stesso schema in cui arrivano con la funzione informazioni dominio | Richiesto |
Parametri della risposta
Parametro | Tipo | Descrizione |
---|---|---|
result | stringa | Il risultato dell’operazione: success o error |
Esempio di richiesta (PHP cUrl)
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://my.supporthost.com/domainapi.php/domain/updatewhois',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"domain": "colibri.com",
"contactdetails": {
"Registrant": {
"Name": "xxxxxx"
"Company": "xxxxxx"
"City": "xxxxxx"
"State": "xxxxxx"
"Country": "EE"
"Postcode": "12345"
"Phone_Number": "+39.0000000000"
"Email": "[email protected]"
"Address": "xxxxxx"
"entityType": "1"
"itNationality": "IT"
"regCode": "xxxxxx"
"consentForPublishing": true
}
"Admin": {
"Name": "xxxxxx"
"Company": "xxxxxx"
"City": "xxxxxx"
"State": "xxxxxx"
"Country": "EE"
"Postcode": "12345"
"Phone_Number": "+39.0000000000"
"Email": "[email protected]"
"Address": "xxxxxx"
}
"Tech": {
"Name": "xxxxxx"
"Company": "xxxxxx"
"City": "xxxxxx"
"State": "xxxxxx"
"Country": "EE"
"Postcode": "12345"
"Phone_Number": "+39.0000000000"
"Email": "[email protected]"
"Address": "xxxxxx"
}
}
}',
CURLOPT_HTTPHEADER => array(
'X-Email: your_email',
'X-Api-Key: your_apikey'
),
));
$response = curl_exec($curl);
curl_close($curl);
Esempio di risposta (JSON)
{
"result": "success",
}
Risposte di errore
- Connection refused from unauthorized host. IP xxx.xxx.xxx.xxx is NOT allowed to access your account
- Invalid email or not a reseller.
- Invalid API key.
- Domain not found in your account
- Eventuali errori del registro dovuti ai nuovi dati dei contatti del dominio