Website

Toggle password protection for a website

post/v1/hosting/websites/{website_id}/password-protection

Request

Path parameters

website_idinteger required

Headers

x-api-keystring required

API key for authentication

Request body

action'enable' | 'disable' required

Action to perform on password protection

Example request

{
  "action": "enable"
}

Response

Password protection toggled successfully

status'ok'
messagestring

Success message

Example response

{
  "status": "ok",
  "message": "successfully enabled"
}

Changes

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