site-controller
Set a site's link-access mode
Private, password protected, email capture, or public. Switching to password requires a password unless the site already has one; capture is refused unless the deployment has CAPTURE_EMAILS switched on. Setting or changing the password — and any change of mode — invalidates every gate token already issued, so everyone currently viewing has to clear the gate again. Leaving capture never deletes captured addresses; it only stops collecting.
put/api/sites/{slug}/visibility
Request
- Base URL: https://api.pagegoat.com
- URL: https://api.pagegoat.com/api/sites/{slug}/visibility
- Auth: HTTP bearer
Path parameters
slugstring required
Request body
Example request
{
"visibility": "password",
"publicRole": "viewer",
"password": "mR7k-qP2w-vT9x",
"captureOtp": true,
"captureReverifyDays": 30,
"captureDomains": "acme.com, northloop.co"
}Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.