Skip to main content

Generate a password from rules

PUT 

/api/v1/PasswordComplexity/Generate

Generates one random password that follows the rules in the request body and returns it as a JSON string. It does not save anything. The length must be between 2 and 128, and needs must name at least one character type.

Permission required: Admin or App role.

Values for needs, mustStartWith, mustEndWith: 0 = None, 1 = Lowercase, 2 = Uppercase, 4 = Numeric, 8 = Symbol, 16 = Space.

Caution: The response contains a generated password in plain text, so handle and store it as a secret.

Request​

Responses​

The generated password as a JSON string.