---
title: "Update the password of a guest using OTP"
method: PUT
path: "/v1/guests/{guest_id}/password"
---

# Update the password of a guest using OTP

`PUT /v1/guests/{guest_id}/password`

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.

## Path parameters

- `guest_id` string, required

## Request body

- object
  - `new_password` string — This is the new password of the guest.
  - `verification_code` string — This is the verification code of the guest.
  - `verification_id` string — This is the verification id for resetting the password.

## Response `200`

200

- object
  - `success` boolean

## Other responses

- `400` — 400

---

[API](https://skmtc.net/zenoti/apis/zenoti-authentication.md) · [All operations](https://skmtc.net/zenoti/apis/zenoti-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zenoti/zenoti-authentication/revisions/e628f892391a/schema)
