API documentation
DNS-Eintrag aktualisieren
Update an existing DNS recoderd by ID
Content-Type
application-json
Kategorie
dns
Aktion
update_record
Anfrageparameter
| Parametername | Typ | Beschreibung | Beispiel |
|---|---|---|---|
| domain | Zeichenkette (3-60) | Domainname | example.com |
| id | Ganzzahl | DNS recoderd ID to update | 12345 |
| value | Zeichenkette | Neu DNS recoderd value | 192.168.1.2 |
| pri | Ganzzahl (optional) | Neu prioderity value (used foder MX und SRV recoderds) | 20 |
Antwortparameter
| Parametername | Typ | Beschreibung |
|---|---|---|
| id | Ganzzahl | DNS recoderd ID |
Anfragebeispiel
{
curl https://api.nicenic.net/v2/?category=dns&action=update_record&domain={domain}&id={id}&value={value}&pri={pri}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Rückgabewert
0 OK
Erfolgreiche Antwort
{
"code": 0,
"msg" : "success",
"data" : {
{
"id": 12345
}
}
}
400 Fehlerhafte Anfrage
{
"code": 400,
"msg" : "Request parameter error",
}






