Domains
Update Nameservers
Update nameservers for a domain.
PUT
/
api
/
v1
/
registrar
/
domains
/
{domain}
/
nameservers
Update Nameservers
curl --request PUT \
--url https://api.dotlet.net/api/v1/registrar/domains/{domain}/nameservers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"nameservers": [
"<string>"
]
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({nameservers: ['<string>']})
};
fetch('https://api.dotlet.net/api/v1/registrar/domains/{domain}/nameservers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dotlet.net/api/v1/registrar/domains/{domain}/nameservers"
payload = { "nameservers": ["<string>"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dotlet.net/api/v1/registrar/domains/{domain}/nameservers"
payload := strings.NewReader("{\n \"nameservers\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"domain": "<string>",
"nameservers": [
"<string>"
],
"message": ""
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
APIKeyHeaderHTTPBearer
Path Parameters
Query Parameters
Body
application/json
Request to update nameservers
Required array length:
2 - 13 elements⌘I
Update Nameservers
curl --request PUT \
--url https://api.dotlet.net/api/v1/registrar/domains/{domain}/nameservers \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"nameservers": [
"<string>"
]
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({nameservers: ['<string>']})
};
fetch('https://api.dotlet.net/api/v1/registrar/domains/{domain}/nameservers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dotlet.net/api/v1/registrar/domains/{domain}/nameservers"
payload = { "nameservers": ["<string>"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dotlet.net/api/v1/registrar/domains/{domain}/nameservers"
payload := strings.NewReader("{\n \"nameservers\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"domain": "<string>",
"nameservers": [
"<string>"
],
"message": ""
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}