| Field | Type | Description |
|---|---|---|
| saved | Boolean | Indicates whether the record is saved or not |
| record | Object | Zone basic record data object |
| ...name | String | Record name |
| ...type | String | Record type |
| ...value | String | Record value |
| ...remarks | String | Additional remarks |
| Action | URL |
|---|---|
| Get Supported Record Types | {{baseUrl}}/dns/v2/zone/record-types |
| Get Zone Basic Records | {{baseUrl}}/dns/v2/zone/:zone/basic/records |
curl --location --request POST 'https://oteapi.webnic.cc/dns/v2/zone/webnic.sbs/record' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "@",
"type": "CNAME",
"ttl": 3600,
"rdatas": [
{
"value": "web01.webnic.cc"
},
{
"value": "web02.webnic.cc"
},
{
"value": "web03.webnic.cc"
},
{
"value": "web04.webnic.cc"
}
]
}'{
"code": "1000",
"message": "Command completed successfully.",
"data": {
"name": "",
"type": "MX",
"ttl": 3600,
"rdatas": [
{
"value": "1 mail.webnic.sbs",
"attributes": {}
},
{
"value": "10 mail.webnic.sbs",
"attributes": {}
},
{
"value": "100 mail.webnic.sbs",
"attributes": {}
}
],
"remarks": "any remark"
}
}