Skip to navigation

Enable or disable a domain

View as Markdown

Inverts the domain’s enabled flag and returns the resulting state. A disabled domain stops serving redirects but keeps its configuration.

This flips the flag rather than setting it, so it is not idempotent: repeating the call reverses it. Read enabled from the domain to confirm the state rather than replaying the request after a timeout.

Authentication

Authorizationstring

API key credential, sent as Key <base64(keyId:secret)>.

Path parameters

domain_idstringRequired

Response

OK
bodyobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error