Set a status page's password and IP allowlist. A page with either is private.
const url = 'https://api.siteqwality.com/status_page/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/access';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"password":"example","ip_allowlist":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.siteqwality.com/status_page/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/access \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "password": "example", "ip_allowlist": [ "example" ] }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Status page identifier
Request Body required
Section titled “Request Body required ”A change to a page’s access. A field left out stays as it is. Any change to the password or the allowlist signs out every visitor.
object
8 to 256 characters. null removes the password.
At most 50 IPv4 or IPv6 addresses or CIDR blocks. [] removes them all.
Example generated
{ "password": "example", "ip_allowlist": [ "example" ]}Responses
Section titled “ Responses ”The page’s access after the change. A changed password or allowlist signs out every visitor
Who may see a status page. The password itself is never returned.
object
Public: anyone with the link. Private: a password, an IP allowlist, or both.
Addresses and CIDR blocks whose visitors skip the password, e.g. 203.0.113.0/24.
The account’s private pages, this one included when it is private.
How many pages may be private; null is unlimited. Each Private status page add-on adds one.
Example
{ "visibility": "public"}A password under 8 or over 256 characters, an entry that is not an IP address or CIDR block, or more than 50 entries
Missing or invalid authentication
Every private page the plan includes is in use; the message names the Private status page add-on
Status page not found
Internal server error