Create a password policy

Create a new password policy. By default, Horizon has a default password policy named 'Horizon-Default' that enforces 16 bytes passwords

Body required
application/json

The password policy to register

_id
string (Internal ID) required

The internal ID of the password policy

name
string required

The name of the password policy

minChar
integer required

The minimum number of characters of the password

maxChar
integer | null

The maximum number of characters of the password

minUpChar
integer | null

The minimum number of uppercase characters of the password

minLoChar
integer | null

The minimum number of lowercase characters of the password

minDiChar
integer | null

The minimum number of digits of the password

spChar
string | null

The special characters of the password accepted by the password policy

minSpChar
integer | null

The minimum number of special characters of the password

Responses
  • 201 Password policy successfully registered
    _id
    string (Internal ID) required

    The internal ID of the password policy

    name
    string required

    The name of the password policy

    minChar
    integer required

    The minimum number of characters of the password

    maxChar
    integer | null

    The maximum number of characters of the password

    minUpChar
    integer | null

    The minimum number of uppercase characters of the password

    minLoChar
    integer | null

    The minimum number of lowercase characters of the password

    minDiChar
    integer | null

    The minimum number of digits of the password

    spChar
    string | null

    The special characters of the password accepted by the password policy

    minSpChar
    integer | null

    The minimum number of special characters of the password

  • 400 Unable to register the password policy
  • 401 Authentication error
  • 403 Forbidden action
  • 500 Unexpected internal server error