WebNIC RESTFUL v2
Domain APISSL APIDNS APIUtility Endpoints
Domain APISSL APIDNS APIUtility Endpoints
WebNIC OST @ Github
WebNIC Partner Portal
  1. Domain
  • 📝 Update History
  • IDN Language Code
  • Contact
    • Create Contact
      POST
    • Query Contact Info
      GET
    • Modify Contact
      POST
    • Delete Contact
      DELETE
    • Create Contact at Registry
      POST
    • Modify Contact at Local System only
      POST
    • Modify Contact at Registry
      POST
  • Registrant
    • Create Registrant Account
    • Get Registrant Account List
    • Send Login Info
    • Update Registrant User by Domain List
    • Modify Registrant Account
  • Domain Product
    • Get Extension Price
    • Get Extensions Promo Pricing
    • Smart Query by TLDs
    • Get Domain Extensions
    • Get Extensions Rule (RG)
    • Get Extensions Rule (TF)
    • Get Extensions Rule (GRACE)
    • Get Extensions Rule (DOC)
    • Suspend Domain
    • Get Domain Suspend Status
  • Domain
    • Check Domain Pattern
      GET
    • Query Domain
      GET
    • Count Total Domains
      GET
    • Get Domain Info
      GET
    • Get Universal WHOIS Information
      GET
    • Update Domain Status
      PUT
    • Get WebNIC Default Nameservers
      GET
    • Update Domain Nameserver
      PUT
    • Toggle Whois Privacy
      PUT
    • Toggle Proxy Subscription
      PUT
    • Register Domain
      POST
    • Renew Domain
      POST
    • Restore Domain
      POST
    • Delete Domain
      DELETE
    • Resend Domain Verification Email
      POST
    • Download Certificate
      GET
    • Reset Authorization Information
      POST
    • Send Authorization Information
      POST
    • Upload Verification Document
      POST
    • Get Domain Statistics
      GET
    • Get Top Domain Available List
      GET
  • Domain Host
    • Check Host
    • Get Host Info
    • Modify Host
    • Get Host List (Pagination)
    • Create Host By Extension
    • Delete Host By Extension
    • Get Host Registered Registries
    • Get Host linked Domain List
  • Domain DNSSEC
    • Check DNSSEC Supported
    • Get DNSSEC Info
    • Update DNSSEC
    • Delete DNSSEC
  • Domain Transfer
    • Query Transfer Type
    • Submit Reseller Transfer
    • Submit Registrar Transfer In
    • Get Registrar Transfer In Status by Domain Name
    • Get Registrar Transfer In Status by Id
    • Get Registrar Transfer Away Status by Domain Name
    • Get Registrar Transfer Away Status by Id
    • Update Registrar Transfer Away Status
    • Get Reseller Transfer Status by Domain Name
    • Get Reseller Transfer Status by Id
    • Update Reseller Transfer Away Status
  • Pending Order
    • Get Pending Order Info
  • Domain Action Log
    • Get Domain Action Log Info
  • Registry Program
    • Bundle HK Domain
    • Check Free TW Domain Eligibility
  • Domain Broker
    • Initiate Domain Broker
  • Secondhand Domain
    • Insert Secondhand Domain
  • Bulk Request
    • Bulk Domain Registration
    • Bulk Domain Renewal
    • Bulk Replace Contact
    • Get Bulk Report Overview
    • Get Bulk Report Details
Domain APISSL APIDNS APIUtility Endpoints
Domain APISSL APIDNS APIUtility Endpoints
WebNIC OST @ Github
WebNIC Partner Portal
  1. Domain

Update Domain Nameserver

OTE Environment
https://oteapi.webnic.cc
OTE Environment
https://oteapi.webnic.cc
PUT
/domain/v2/dns
Last modified:2025-02-26 22:44:10
Modify domain nameserver.
Appointed nameserver (domain host) must be registered with target TLD.

Request

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

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

🟠400Required Parameter Not Present
🟠400Invalid Domain Name
🟠400Domain Not Exist For This Reseller
🟠400Object Association Prohibits Operation
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://oteapi.webnic.cc/domain/v2/dns?domainName=webnic.com' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "nameservers": [
    "ns1.1webnic.com",
    "ns2.1webnic.com"
  ]
}'
Response Response Example
200 - OK
{
    "code": "1000",
    "message": "Command completed successfully."
}
Modified at 2025-02-26 22:44:10
Previous
Get WebNIC Default Nameservers
Next
Toggle Whois Privacy
Built with