HostingPasswordPathAdd

This function allows you to set up password protection (HTTP Basic Auth) for a web space directory. In order to allow several different users to access a directory, the function can be called several times (with the user name to be added in each case).

The users and passwords are managed using the HostingPasswordUserAdd function.

Request

Field

Type

RegExp

Null?

Description

auth

AuthData

no

Authentication data

subscription

string

^.{1,64}$

no

Subscription name

path

string

^.{1,255}$

no

Path (needs to start with /htdocs/ or /apps/)

title

string

^.{1,100}$

no

Description/title of the password prompt

login

string

^.{1,40}$

no

allowed user; * = all users

Response

Field

Type

Null?

Description

status

string

no

Status (“ok”)


Last updated on Apr 30, 2020.
next: HostingPasswordUserAdd
previous: HostingMailboxGet