Sites

Set or update the password protecting a site

Hashes the supplied password (PBKDF2-SHA256) and stores it on the site. The hash + salt are mirrored into the KV record so the Worker can verify visitor credentials. The plain-text password is never stored or echoed back.

put/sites/{id}/password

Request

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

Path parameters

idstring required

Site UUID

Request body

passwordstring required

Plain-text password to protect the site with. Hashed server-side (PBKDF2-SHA256) before storage; never echoed back.

Response

idstring required

Site UUID

passwordProtectedboolean required

Whether the site is now password-protected. The hash itself is never returned.

Changes

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