curl --request POST \
--url 'https://domain.hostwithdothost.com/?action=modifynameserver' \
--header 'Content-Type: application/json' \
--data '{
"username": "yourUsername",
"password": "yourPassword",
"domain": "thegrtnx.com.ng",
"nameservers": {
"ns1": "aria.ns.cloudflare.com",
"ns2": "garrett.ns.cloudflare.com"
}
}'
{
"data": {
"NameServers": [
"aria.ns.cloudflare.com",
"garrett.ns.cloudflare.com"
]
},
"result": "OK"
}
curl --request POST \
--url 'https://domain.hostwithdothost.com/?action=modifynameserver' \
--header 'Content-Type: application/json' \
--data '{
"username": "yourUsername",
"password": "yourPassword",
"domain": "thegrtnx.com.ng",
"nameservers": {
"ns1": "aria.ns.cloudflare.com",
"ns2": "garrett.ns.cloudflare.com"
}
}'
{
"data": {
"NameServers": [
"aria.ns.cloudflare.com",
"garrett.ns.cloudflare.com"
]
},
"result": "OK"
}
The response is of type object
.
Was this page helpful?