API documentation
???? DNS Rec??d
???? an existing DNS rec??d by ID
Content-Type
application-json
???????
dns
?????
update_record
?????? ????
| ?? ????? | ??? | ????? | ????? |
|---|---|---|---|
| domain | ?????? (3-60) | ?? ?????? | example.com |
| id | ???? ??? | DNS rec??d ID to update | 12345 |
| value | ?????? | ??? DNS rec??d value | 192.168.1.2 |
| pri | ???? ??? (?????????) | ??? pri??ity value (used f?? MX ? SRV rec??ds) | 20 |
?????? ?????
| ?? ????? | ??? | ????? |
|---|---|---|
| id | ???? ??? | DNS rec??d ID |
????? ????
{
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"
}
????? ?????
0 OK
????? ??????
{
"code": 0,
"msg" : "success",
"data" : {
{
"id": 12345
}
}
}
400 ???? ?????
{
"code": 400,
"msg" : "Request parameter error",
}






