Skip to main content
POST
/
api
/
domains
/
{domain_id}
/
toggle
/
dns
cURL
curl --request POST \
  --url https://domainwarden.app/api/domains/{domain_id}/toggle/dns \
  --header 'Authorization: Bearer <token>'
{
  "message": "DNS Monitoring has been enabled.",
  "component": "dns",
  "enabled": true
}

Authorizations

Authorization
string
header
required

You can obtain your API Token from your Domainwarden account settings.

Path Parameters

domain_id
string
required

The ID of the domain.

domain
integer
required

The ID of the domain.

Response

message
string
Example:

"DNS Monitoring has been enabled."

component
string
Example:

"dns"

enabled
boolean
Example:

true