Change Login Password Using Qualys API

This topic includes the steps to change a user's login password using the Qualys API. The process involves sending a request to a specific API endpoint with the required headers, authentication, and request body.

Let us learn more about the API server URL to be used in your API requests by referring to the Know Your Qualys API Server URL section. For this, <qualys_base_url> is mentioned in the sample API requests.

POST/api/2.0/fo/user/change_password/index.php

Input ParametersInput Parameters

Parameter Mandatory/ Optional Data Type Description
newPassword Mandatory String Provide a new password.
<these depends on Response>      

Sample: Update the blocked commandSample: Update the blocked command

API Request

curl -u "username:password" -H "X-Requested-With: Curl" -H "Content-Type: application/json" -X POST "{URL}/api/2.0/fo/user/change_password/index.php" -d "{\"newPassword\": \"New_password_value\"}"

Response

{
<<please provide response>>
}

Good to know

 

 

success Thank you! We're glad to hear that this topic was useful.
success We appreciate your feedback. We'll work to make this topic better for you in the future.