The password rules of every scope, for forms and the password generator; any signed-in user
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/password-policyThe password rules of every scope, for forms and the password generator; any signed-in user
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Responses
200 Rules
Content type: application/json
scopesobject requiredmin_lengthinteger requiredShortest password; at least the scope's floor, at most 64
min_classesinteger requiredKinds of characters (lower, upper, digit, other) required; 0 or 1 asks for no mix
- minimum 0
- maximum 4
block_commonboolean requiredRefuse common passwords and their simple variations (offline list)
block_contextboolean requiredRefuse a password containing the account's own name, e-mail or domain
generate_lengthinteger requiredHow long a generated password for this scope is
Fields of PublicPasswordRules are shown above.
Fields of PublicPasswordRules are shown above.
Fields of PublicPasswordRules are shown above.
Example
{
"scopes": {
"panel": {
"min_length": 0,
"min_classes": 0,
"block_common": true,
"block_context": true,
"generate_length": 0
},
"mailbox": {
"min_length": 0,
"min_classes": 0,
"block_common": true,
"block_context": true,
"generate_length": 0
},
"ftp": {
"min_length": 0,
"min_classes": 0,
"block_common": true,
"block_context": true,
"generate_length": 0
},
"database": {
"min_length": 0,
"min_classes": 0,
"block_common": true,
"block_context": true,
"generate_length": 0
}
}
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required