Sites

Toggle a site between live and inactive

Owner-only toggle for the user-driven live / inactive states. Updates the KV record so the Worker reflects the new state on the next request. Other statuses (awaiting_verification, suspended) are not user-toggleable.

patch/sites/{id}/status

Request

  • Base URL: https://api.nippy.host
  • URL: https://api.nippy.host/sites/{id}/status
  • Auth: bearer (a scheme the document does not define)

Path parameters

idstring required

Site UUID

Request body

status'live' | 'inactive' required

Target status. Only live and inactive are owner-toggleable.

Response

idstring required

Site UUID

status'pending' | 'awaiting_verification' | 'live' | 'inactive' | 'suspended' required

Changes

No recorded changes to this operation across all 1 revision of this API.