get:
  operationId: getPasswordDictionary
  tags:
    - Password Dictionary
  summary: Get Password Dictionary
  description: >-
    This gets password dictionary for the organization.

    A token with ORG_ADMIN authority is required to call this API.
  security:
    - oauth2: [idn:password-dictionary-management:read]
  responses:
    '200':
      description: >-

        The password dictionary file can contain lines that are:

        1. comment lines - the first character is '#', can be 128 Unicode codepoints in length, and are ignored during processing

        2. empty lines

        3. locale line - the first line that starts with "locale=" is considered to be locale line, the rest are treated as normal content lines

        4. line containing the password dictionary word - it must start with non-whitespace character and only non-whitespace characters are allowed;
                maximum length of the line is 128 Unicode codepoints


        Password dictionary file may not contain more than 2,500 lines (not counting whitespace lines, comment lines and locale line).
         Password dict file must contain UTF-8 characters only.

        # Sample password text file


        ```


        # Password dictionary small test file


        locale=en_US


        # Password dictionary prohibited words


        qwerty

        abcd

        aaaaa

        password

        qazxsws


        ```
      content:
        text/plain:
          schema:
            type: string
    '400':
      $ref: '../responses/400.yaml'
    '401':
      $ref: '../responses/401.yaml'
    '403':
      $ref: '../responses/403.yaml'
    '404':
      $ref: '../responses/404.yaml'
    '429':
      $ref: '../responses/429.yaml'
    '500':
      $ref: '../responses/500.yaml'
put:
  operationId: updatePasswordDictionary
  tags:
    - Password Dictionary
  summary: Update Password Dictionary
  description: >-
    This updates password dictionary for the organization.

    A token with ORG_ADMIN authority is required to call this API.
  security:
    - oauth2: [idn:password-dictionary:manage]
  requestBody:
    required: true
    description: >-

      The password dictionary file can contain lines that are:

      1. comment lines - the first character is '#', can be 128 Unicode codepoints in length, and are ignored during processing

      2. empty lines

      3. locale line - the first line that starts with "locale=" is considered to be locale line, the rest are treated as normal content lines

      4. line containing the password dictionary word - it must start with non-whitespace character and only non-whitespace characters are allowed;
              maximum length of the line is 128 Unicode codepoints


      Password dictionary file may not contain more than 2,500 lines (not counting whitespace lines, comment lines and locale line).
       Password dict file must contain UTF-8 characters only.

      # Sample password text file


      ```


      # Password dictionary small test file


      locale=en_US


      # Password dictionary prohibited words


      qwerty

      abcd

      aaaaa

      password

      qazxsws


      ```
    content:
      multipart/form-data:
        schema:
          type: object
          properties:
            file:
              type: string
              format: binary
  responses:
    '200':
      description: Successfully updated.
    '201':
      description: Created.
    '400':
      $ref: '../responses/400.yaml'
    '401':
      $ref: '../responses/401.yaml'
    '403':
      $ref: '../responses/403.yaml'
    '404':
      $ref: '../responses/404.yaml'
    '429':
      $ref: '../responses/429.yaml'
    '500':
      $ref: '../responses/500.yaml'
