API documentation
Domain-Kontakte aktualisieren
Diese API kann die Kontaktinformationen einer Domain ändern
Content-Type
application-json
Kategorie
domain
Aktion
change_contact
Anfrageparameter
| Parametername | Typ | Beschreibung | Beispiel |
|---|---|---|---|
| domain | Zeichenkette (3-60) | Domainname | example.com |
| name | Zeichenkette (1-16) | Name des Domaininhabers | Xiao Ming |
| organization | Zeichenkette (1-255) | Organisation / Firmenname | XXX Ltd. |
| address | Zeichenkette (1-255) | Postanschrift | BeiJing |
| country | Zeichenkette (1-255) | Ländercode, z. B. CN | CN |
| state | Zeichenkette (1-255) | Provinz / Bundesland | BeiJing |
| city | Zeichenkette (1-255) | Stadtabkürzung | BJ |
| postcode | Ganzzahl (6) | Postleitzahl | 100000 |
| phone | "." zur Trennung von Zahlen (30) | +Ländervorwahl.Gebietscode und Telefonnummer | +86.13800000000 |
| fax | "." zur Trennung von Zahlen (30) | +Ländervorwahl.Gebietscode und Faxnummer | +86.13800000000 |
| E-Mail-Adresse | E-Mail-Adresse | [email protected] |
Anfragebeispiel
{
curl https://api.nicenic.net/v2/?category=domain&action=change_contact&domain={domain}&name={name}&organization={organization}&address={address}&country={country}&state={state}&city={city}&postcode={postcode}&phone={phone}&fax={fax}&email={email}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Rückgabewert
0 OK
Erfolgreiche Antwort
{
"code": 0,
"msg" : "success",
"data" : {
}
}
400 Fehlerhafte Anfrage
{
"code": 400,
"msg" : "Request parameter error",
}






