Undeploy a site

Take the site offline. All content stays in the workspace, and a later deploy brings the site back. The undeploy is recorded in build history attributed to the token.

DELETE https://sitepaste.com/api/v1/public/sites/{siteId}/deployments/live

Requires the deploy scope.

Once the site is down, GET /sites/{siteId}/deployments/live answers 404.

Usage

curl -X DELETE "https://sitepaste.com/api/v1/public/sites/default/deployments/live" \
  -H "Authorization: Bearer $TOKEN"

Authorizations

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication.

Response

204 No Content.

A site with no live deployment, whether never deployed or already taken down, answers 404, so a repeated DELETE answers 404, not a second 204.