-
Notifications
You must be signed in to change notification settings - Fork 0
UpdateUserPassword
Luis Huertas edited this page Feb 7, 2022
·
1 revision
Updates one user
Base Url : http://your-app-base-url.com
Endpoint : /auth/user/:id/password
Method : PUT
Auth required : Yes
header key | header value | description |
---|---|---|
Authorization | BEARER jwtToken | access_token generated using /token
|
Permissions required : Access string 'OAUTH2_user:create'
type: params
{
"subjectId": 1
}
type: body
{
"newPassword": "123456",
"oldPassword": "654321"
}
Request Fields Description
key | value | description |
---|---|---|
newPassword | 123456 | The new password of the user |
oldPassword | 654321 | The current password of the user |
subjectId | 1 | The subject id of the user |
{
"code": 200001,
"message": "User password updated"
}
Response Fields Description
key | value | description |
---|---|---|
code | 200001 | result code |
message | User password updated | result message |
Response codes
- If response is success, http status will be 201 and code in body will be 200001
code | description |
---|---|
500000 | Not categorized error |
400001 | Incorrect password |
400000 | Invalid body |
200001 | user password was updated |