site

Disables a site, preventing it from serving content. The site can be re-enabled later using the enable endpoint.

put/sites/{site_id}/disable

Request

  • Base URL
    https://api.netlify.com/api/v1
  • URL
    https://api.netlify.com/api/v1/sites/{site_id}/disable
  • Auth
    OAuth 2
    Implicit: https://app.netlify.com/authorize

Query parameters

reasonstring required

Reason for disabling the site

Response

No content

Changes