/auth/v1/users/<user_ID>/password: POST

Changes the user password.

The table shows the roles that can access this REST API endpoint:
Table 1. Access by role
Data admin Data user Collection Admin Admin Service user

Synopsis of the request URL

curl -k -H 'Content-Type: application/json' -X POST 
https://<spectrum_discover_host>/auth/v1/users/user_id/password -d‘<json details of user>
Required Parameters in the JSON payload:
  • password - new password
  • original_password - old/current password

Supported request types and response formats

Supported request types:
  • POST
Supported response formats:
  • JSON

Examples

The following example shows how to change a user password.

Request:
curl -k -H 'Content-Type: application/json' -X POST 
https://<spectrum_discover_host>/auth/v1/users/a26f98ab046449bebce70c4832b22ac2/password -X POST-H"Content-Type:application/json" -d ‘{"password":"NewPassw0rd","original_password":"Passw0rd"}’

Response:

204 No Content