v1

latestOpenAPI 3.1.02026-07-2422707.0 MB

Update the password of a guest using OTP

This API helps you to update a guest's password by using the one-time password (OTP) that was sent to the guest's registered email ID after resetting the password.

To invoke this API, you must specify a unique identifier of the guest in the request as guest_id.

You must also provide in the request body the verification_code and verification_id details that the guest received after resetting the password. After the verification_code and verification_id details have been successfully validated, the guest's password is updated to the new_password value.

This API either returns a success parameter that indicates that the password-updation process was successful or returns an error object if there is any error.

put/v1/guests/{guest_id}/password

Path parameters

guest_idstring required

Unique 32-character identifier of the guest whose password is to be updated.

Request body

new_passwordstring

This is the new password of the guest.

verification_codestring

This is the verification code of the guest.

verification_idstring

This is the verification id for resetting the password.

Response

200

successboolean

Example response

{
  "success": true
}