API documentation
Update DNS Record
Update an existing DNS record by ID
Content-Type
application-json
category
dns
action
update_record
Request parameters
| Parameter Name | Type | Describe | Example |
|---|---|---|---|
| domain | String (3-60) | Domain name | example.com |
| id | Integer | DNS record ID to update | 12345 |
| value | String | New DNS record value | 192.168.1.2 |
| pri | Integer (Optional) | New priority value (used for MX and SRV records) | 20 |
Response parameters
| Parameter Name | Type | Describe |
|---|---|---|
| id | Integer | DNS record ID |
Request Example
{
curl http://api.www.gtlpnf.cn/v2/?category=dns&action=update_record&domain={domain}&id={id}&value={value}&pri={pri}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Return result
0 OK
Successful response
{
"code": 0,
"msg" : "success",
"data" : {
{
"id": 12345
}
}
}
400 Bad Request
{
"code": 400,
"msg" : "Request parameter error",
}






