API documentation
ลบเนมเซิร์ฟเวอร์ย่อย
ลบ a จดทะเบียนed DNS server
Content-Type
application-json
หมวดหมู่
nameserverhost
การทำงาน
delete
พารามิเตอร์คำขอ
| ชื่อพารามิเตอร์ | ประเภท | คำอธิบาย | ตัวอย่าง |
|---|---|---|---|
| domain | สตริง | ชื่อโดเมน | example.com |
| dns | สตริง (3-30) | DNS server name (must match โดเมน) | ns1.example.com |
พารามิเตอร์การตอบกลับ
| ชื่อพารามิเตอร์ | ประเภท | คำอธิบาย |
|---|---|---|
| dns | สตริง | ลบd DNS server name |
ตัวอย่างคำขอ
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=delete&domain={domain}&dns={dns}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
ผลลัพธ์ที่ส่งกลับ
0 OK
ตอบกลับสำเร็จ
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com"
}
}
}
400 คำขอไม่ถูกต้อง
{
"code": 400,
"msg" : "Request parameter error",
}






