Skip to content

Set or rotate the shared password

PUT
/status-pages/{id}/shared-password
curl --request PUT \
--url https://api.perstat.io/status-pages/example/shared-password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "password": "example" }'

Sets or rotates the shared password of a status page. The password must be at least 12 characters and is stored only as a hash; rotation immediately invalidates all existing shared access sessions. Setting the password is separate from enabling the shared-password access mode in the page settings. Accepts API keys with the status-pages:write scope, subject to current role and resource grants.

id
required
string
Media typeapplication/json
object
password
required

Klartext-Kennwort (min. 12 Zeichen). Wird Argon2-gehasht; at rest liegt nur der Hash. Wird NIE im DTO zurückgegeben.

string
Examplegenerated
{
"password": "example"
}

Request succeeded. The response has no body.

Kennwort < 12 Zeichen

Authentication is missing or invalid.

The authenticated caller does not have permission to perform this operation.

No accessible resource matches the supplied identifier.