v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Password Protection

Add site password protection user.

Adds a user who can access the site while it is password protected

post/v1/sites/{id}/password_protection/users

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888

Request body

usernamestring

username who can access the site while password protection is turned on

passwordstring

Password for the user

Example request

{
  "username": "secretuser",
  "password": "R3@llyStr0ng!P@55w0rd_123456"
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": []
}