Version 2021

Insecurely Reset User Password from a Service

Insecurely resets a user password requested by the customer.

POST /api/v1/account/forceResetPassword

Additional Error Code: USER_NOT_FOUND, DELIVERY_SERVICE_ERROR

Example call

curl  -v  -X  POST  'https://usher-endpoint.com/api/v1/account/forceResetPassword?ts=1534462143'  -H'Authorization: Bearer [service token]' -H 'Accept: /' -H 'Content-Type: application/json; charset=UTF-8'   -d   '{"userId":   "[email]",   "userIdType":   "email",   "requester":   "Kintaro",   "password":   "p-0-newEncryptedPassword", "locale": "jp", "isPasswordEncrypted":"true"}'

Parameters

Type Name Description Schema
Query ts Unix time string
Body body (required) Reset password parameter body

body

Name Description Schema
isPasswordEncrypted Indicate if the password is encrypted. Default value is true. boolean
locale (required) Locale string
password The new encrypted password submitted by user. string
requester (required) Requester string
uid The UID of the user. At a minimum, either the UID or the UserID should be provided in this request. string
userId userId string
userIdType User ID type. Email will be used by default if left empty. string

Responses

HTTP Code Description Schema
200 Successful transaction Response 200
400 Invalid Request ErrorResponsiveInvalidInput
500 Server Error ErrorResponseInternalServerError

Response 200

Name Description Schema
data   object
localizedMessage Example : " " string
reason Example : " " string
status Example : "OK " string

Consumes

application/json

Produces

application/json

Security

Type Name
apiKey ServiceAuth