Skip to main content
POST
/
api
/
domains
/
{domain_id}
/
toggle
cURL
curl --request POST \
  --url https://domainwarden.app/api/domains/{domain_id}/toggle \
  --header 'Authorization: Bearer <token>'
{
  "message": "The domain has been disabled.",
  "domain": {
    "id": 1,
    "name": "example.com",
    "disabled": 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:

"The domain has been disabled."

domain
object