WebNIC RESTFUL v2
Domain APISSL APIDNS APIUtility Endpoints
Domain APISSL APIDNS APIUtility Endpoints
WebNIC OST @ Github
WebNIC Partner Portal
  1. Zone Record
  • 📝 Update History
  • Zone
    • Get Domain Zone
      GET
    • Add Domain Zone to NS Subscription
      POST
    • Get Domain Zone NS Subscription
      GET
    • Search Domain Zones
      GET
    • Delete Domain Zone
      DELETE
    • Get Domain Zone Statistics
      GET
    • Get Premium Subscription Statistics
      GET
  • Zone Record
    • Get Basic Record Nameservers
      GET
    • Get Subscription Record Nameservers
      GET
    • Get Zone Records
      GET
    • Get Supported Record Types
      GET
    • Save Zone Record
      POST
    • Remove Zone Subscription Record
      POST
    • Replace Zone Subscription Record
      POST
    • Delete Zone Record
      DELETE
    • Delete Zone Subscription Record
      DELETE
    • Detele Basic Zone Record
      DELETE
  • Zone Forwarding
    • Get Zone Url Forwardings
      GET
    • Add Zone Url Forwarding
      POST
    • Remove Zone Url Forwarding
      DELETE
    • Get Zone Email Forwardings
      GET
    • Add Zone Email Forwarding
      POST
    • Remove Zone Email Forwarding
      DELETE
  • Zone DNSSEC
    • Get Domain Zone DNSSEC Info
      GET
    • Enable Domain Zone DNSSEC
      PUT
    • Disable Domain Zone DNSSEC
      PUT
    • Get Domain Zone DNSSEC DNS Key Record
      GET
    • Get Domain Zone DNSSEC DS Record
      GET
  • Subscription Whitelabel
    • Get Whitelabel Nameserver
    • Save Whitelabel Nameservers
    • Remove Whitelabel Nameservers
  • Subscription
    • Add Domain Zone to Partner Subscription
    • Remove Domain Zone from Partner Subscription
    • Subscribe Domain Subscription
    • Get Domain Subscription
    • Get Domain Subscription by Id
    • Get Domain Subscription by Domain Name
    • Renew Domain Subscription
    • Unsubscribe Domain Subscription
    • Enable Domain Subscription Auto Renewal
    • Disable Domain Subscription Auto Renewal
  • Zone Record Template
    • Get Zone Subscription Record Templates
    • Create Zone Subscription Record Template
    • Get Zone Subscription Record Template by Id
    • Update Zone Subscription Record Template by Id
    • Add Zone Subscription Record to Zone Subscription Record Template
    • Remove Zone Subscription Record from Zone Subscription Record Template
    • Delete Zone Subscription Record Template
Domain APISSL APIDNS APIUtility Endpoints
Domain APISSL APIDNS APIUtility Endpoints
WebNIC OST @ Github
WebNIC Partner Portal
  1. Zone Record

Replace Zone Subscription Record

Testing
OTE Environment
https://oteapi.webnic.cc
OTE Environment
https://oteapi.webnic.cc
POST
/dns/v2/zone/{zone}/subscription/record/replace
Last modified:2025-03-24 07:14:51
This endpoint allows you to replace zone subscription record.
Request Body
FieldTypeDescription
nameString(Required) Record name
typeString(Required) Record type
ttlNumber(Optional) Indicates how often a DNS server will refresh the record (in millisecond)
rdatasObject[](Required) List of rdata
...valueString(Required) Record value
...attributesObject(Optional) An object which stores additional key-value pairs for extra metadata related to the DNS record
remarksString(Optional) Additional remarks
Response Data
FieldTypeDescription
replacedBooleanIndicates whether the record is replaced or not
recordObjectZone subsription record data object
...typeStringRecord type
...nameStringRecord name
...ttlNumberIndicates how often a DNS server will refresh the record (in millisecond)
...rdatasObject[]List of rdata
......valueStringRecord value
......attributesObjectAn object which stores additional key-value pairs for extra metadata related to the DNS record
...dnstableIdNumberDNS table ID
...remarksStringAdditional remarks
Related Action
ActionURL
Get Zone Subscription Records{{baseUrl}}/dns/v2/zone/:zone/subscription/records

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

🟠400Domain Zone Not Under Current Partner
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://oteapi.webnic.cc/dns/v2/zone/captainmarvel3.com.mm/subscription/record/replace' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "www",
    "type": "A",
    "rdatas": [
        {
            "value": "1.1.1.4"
        }
    ]
}'
Response Response Example
200 - OK
{
    "code": "1000",
    "message": "Command completed successfully.",
    "data": {
        "replaced": true,
        "record": {
            "type": "A",
            "name": "www",
            "ttl": 600,
            "rdatas": [
                {
                    "value": "1.1.1.4",
                    "attributes": {}
                }
            ],
            "dnstableId": 1318,
            "remarks": "any remarks"
        }
    }
}
Modified at 2025-03-24 07:14:51
Previous
Remove Zone Subscription Record
Next
Delete Zone Record
Built with