Update User Password
API URL: PUT https://userapi-demo.s2f.projectx.com/User/password
API Reference: /User/password
Description
Changes a User's password given the email and the username.
Parameters
Name | Type | Description | Required | Nullable |
---|---|---|---|---|
string | The User's email. | Required | false | |
userName | string | The User's username. | Required | false |
password | string | The new password. | Required | false |
Example Usage
Example Request
- cURL
curl -X 'PUT' \
'https://userapi-demo.s2f.projectx.com/User/password' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-d '{
"email": "jdoe@projectx.com",
"userName": "jdoe",
"password": "tmpPassword"
}'
Example Response
- Success
- Error
true
Error: response status is 401