---
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`

## Request

- Base URL: `https://api.zenoti.com`
- URL: `https://api.zenoti.com/v1/guests/{guest_id}/password`
- Auth: none required
- TypeScript: <https://skmtc.dev/zenoti/apis/zenoti-authentication/docs/v1/guests/:guest_id/password/put.ts> (a function with typed inputs; its response is checked against the schema)

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.dev/zenoti/apis/zenoti-authentication.md) - [All operations](https://skmtc.dev/zenoti/apis/zenoti-authentication/llms.txt) - [OpenAPI document](https://skmtc.dev/zenoti/apis/zenoti-authentication/revisions/e628f892391a?raw)
