Skip to main content
PATCH
/
users
/
v1
/
rs
/
me
/
reset-password
Reset password for user me
curl --request PATCH \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/users/v1/rs/me/reset-password \
  --header 'Authorization: Bearer <token>' \
  --header 'content-type: <content-type>' \
  --header 'x-session-token: <x-session-token>' \
  --data '
{
  "currentPassword": "$2b$10$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lui/9p2uJ8k6G2a",
  "newPassword": "Str0ng3rP@ssw0rd!"
}
'
This response has no body data.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

content-type
string
required

Content type, must be "application/json".

Allowed value: "application/json"
x-session-token
string
required

Session token used for authenticating the request.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"

Body

application/json

Details required to reset user password

currentPassword
string
required

Hashed password of the user.

Example:

"$2b$10$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lui/9p2uJ8k6G2a"

newPassword
string
required

Strong password of the user.

Required string length: 8 - 100
Example:

"Str0ng3rP@ssw0rd!"

Response

204 - undefined