def change_user_password(
    self,
    username: str,
    current_password: str,
    new_password: str,
) -> bool:
    """Update an existing user's password

    .. list-table::
        :header-rows: 1

        * - Swagger Section
          - Method
          - Endpoint
        * - user
          - POST
          - /users/{newUser}/password

    :param username: Username for user
    :type username: str
    :param current_password: Current password for user
    :type current_password: str
    :param new_password: New password for user, Password must be at
        least 8 characters long and contain the following items: upper
        case letter, lower case letter, a number, a special character
    :type new_password: str
    :return: Returns True/False based on successful call
    :rtype: bool
    """
    data = {
        "oldPassword": current_password,
        "newPassword": new_password,
    }

    return self._post(
        "/users/{}/password".format(username),
        data=data,
        expected_status=[204],
        return_type="bool",
    )