1. API Endpoint
https://openapi.dns.com/api/record/update/
2. Input Parameters
| Parameter |
Name |
Type |
Description |
| domain |
Domain or Domain ID |
string |
Required |
| record_id |
Record ID |
int |
Required |
| record |
Hostname |
string |
Optional, defaults to the existing record hostname |
| type |
Record Type |
string |
Optional, defaults to the existing record type |
| value |
Record Value |
string |
Optional, defaults to the existing record value |
| view_id |
Line ID |
int |
Optional, defaults to the existing record line ID |
| ttl |
TTL |
int |
Optional, defaults to the existing record TTL |
| mx |
MX |
int |
Optional, defaults to the existing record MX |
| remark |
Remark |
string |
Optional, defaults to the existing record remark |
3. Output Parameters
| Parameter |
Name |
Type |
Description |
| code |
Return Code |
int |
0 means success; non-zero refers to error codes |
| message |
Message |
string |
If the operation succeeds, this may be empty; if it fails, an error message will be returned |
| data |
Response Data |
array |
If the API returns data, it will be in an array. If no data, it will be empty |
4. Data Field (data) Description
| Parameter |
Name |
Type |
Description |
| data |
Domain Array |
array |
The array of domains returned on success |
| data.domain_id |
Domain ID |
int |
- |
| data.record_id |
Record ID |
string |
- |
| data.record |
Host |
int |
- |
| data.type |
Record Type |
string |
- |
| data.value |
Record Value |
string |
- |
| data.view_id |
Line ID |
string |
- |
| data.status |
Domain Status |
int |
1 = Active, 2 = Suspended, 3 = System Suspended |
| data.ttl |
TTL (Time to Live) |
int |
- |
| data.mx |
MX Priority |
int |
- |
| data.remark |
Remark |
string |
- |