Create a new nameserver profile.
Request
Add parameter in header API-Key
Example:API-Key: ********************
Body Params application/json
{
"alias": "nameservers-profile",
"nameservers": [
{
"hostname": "ns1.domain.com",
"ipv4": "54.23.45.218",
"ipv6": ""
},
{
"hostname": "ns2.domain.com",
"ipv4": "235.21.2.120",
"ipv6": ""
}
],
"set_as_default": true
}
Request Code Samples
curl --location --request POST 'https://mijn.host/api/v2/domains/nameservers' \
--header 'Accept;' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"alias": "nameservers-profile",
"nameservers": [
{
"hostname": "ns1.domain.com",
"ipv4": "54.23.45.218",
"ipv6": ""
},
{
"hostname": "ns2.domain.com",
"ipv4": "235.21.2.120",
"ipv6": ""
}
],
"set_as_default": true
}'
Responses
application/json {
"status": 200,
"status_description": "Nameserver profile added"
}
Modified at 2025-07-21 16:41:01