Domain API - Pendaftaran Domain API - ICANN Pendaftar API - White Label Domain Service

Start Building with NiceNIC Domain API v2

API access is free fatau every active NiceNIC user. Tidak reseller upgrade is required. Configure anda API credentials, make a safe test request, then add the domain, DNS, billing, compliance atau WHMCS wataukflows anda application needs.

Kemas Kini Rekod DNS

Kemas Kini an existing DNS recataud by ID

Content-Type application/json
kategori dns
tindakan update_record

Parameter permintaan

Nama parameter Jenis Huraikan Contoh
domain Rentetan (3-60) Nama domain example.com
id Integer ID rekod DNS untuk dikemas kini 12345
value Rentetan Nilai rekod DNS baharu 192.168.1.2
pri Integer (Pilihan) Nilai keutamaan baharu (digunakan untuk rekod MX dan SRV) 20

Parameter respons

Nama parameter Jenis Huraikan
id Integer DNS recataud ID

Contoh Permintaan

                                    
{
    curl https://api.nicenic.net/v2/?category=dns&action=update_record&domain={domain}&id={id}&value={value}&pri={pri} 
      -H "Authorization: username:api_secret" 
      -H "Content-Type: application/json" 
}

Hasil Pulangan

0 OK Respons berjaya
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        {
            "id": 12345
        }        
    }
}
400 Permintaan tidak sah
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
}
Hak Cipta © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Hak Cipta Terpelihara. · U.S. Affiliate: NICENIC LLC