Change Login  Password

POST/api/2.0/fo/user/change_password/

This API simplifies password management by enabling users to update their existing passwords to a new one of their choice. This enhancement strengthens security practices and offers a more seamless user experience by integrating password management directly into existing workflows.

Input parametersInput parameters

Parameter Required/Optional Data Type Description
newPassword Required String The new password for the user
(formatted as JSON)

Sample - Change PasswordSample - Change Password

API Request

curl --location 
'<qualys_base_url>/api/2.0/fo/user/change_password/index.php' \
--header 'X-Requested-With: test' \
--header 'Content-Type: application/json' \
--data '{
    "newPassword": "abcd123#"
}'

XML Response

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM 
"<qualys_base_url>/api/2.0/simple_return.dtd>"
    <SIMPLE_RETURN>
        <RESPONSE>
            <DATETIME>2024-08-23T05:18:08Z</DATETIME>
            <TEXT>Password changed successfully</TEXT>
        </RESPONSE>
    </SIMPLE_RETURN>