---
title: "Update details of a guest"
method: PUT
path: "/v1/guests/{guest_id}"
---

# Update details of a guest

`PUT /v1/guests/{guest_id}`

Use this API to update the details of a guest. To update the details of a guest, modify the **expanded** guest object and supply it to this API. In return, you will receive the modified guest object. Note: You must send all the fields obtained from the Retrieve guest details API, even if you want to change the details of only one field. This API also allows guests to update another guest details provided they have a relationship defined in Zenoti. Also, only a host guest token can make changes to another guest.

## Path parameters

- `guest_id` string, required

## Query parameters

- `tags` string, required
- `address_info` object, required
- `preferences` object, required
- `referral` object, required
- `primary_employee` object, required

## Request body

- object
  - `id` string — A unique identifier of the guest
  - `code` string, required — `Mandatory` User code of the guest.
  - `center_id` string, required — `Mandatory` Unique 32-character identifier of the center.
  - `center_name` string — Name of the center to which the guest belongs.
  - `personal_info` object, required — `Mandatory` Object that contains the guest's personal information elements.
    - `user_name` string — Username of the guest
    - `first_name` string — First name of the guest.
    - `last_name` string — Last name of the guest.
    - `middle_name` string — Middle name of the guest
    - `email` string — Email address of the guest.
    - `mobile_phone` object — Denotes the mobile phone number of the guest.
    - `country_code` string — Denotes the country code of the guest's phone number
    - `number` string — Denotes the phone number of the guest.
  - `preferred_service_id` string — Preferred service id for the guest.
  - `created_date` string, date — Date when the guest is created.
  - `can_edit_personal_info` boolean — Denotes if the personal info of the guest is editable. True: Can edit. False: Cannot edit.
  - `is_virtual_guest` boolean — Denotes if the guest is virtual (for Classes and Workshops). True: Guest is virtual. False: Guest is not virtual.
  - `guest_type` string — Unique Identifier - Denotes the type of guest.
  - `is_guest_custom_form_filled` boolean — Denote if the guest's custom form is filled.
  - `login_info` object — Object containing the details of the guest login
    - `password` string — Password that must be updated when creating a guest.
  - `expand` string[] — (optional) Values considered for listing in response object - address_info, preferences, email_details, primary_employee, referral, tags.
  - `tin_number` string — Tax Identification Number (GSTIN) associated with the guest or organization.
  - `registration_type` integer — Registration type associated with the GST registration.
  - `registration_id` string — Registration identifier associated with the GST registration.
  - `account_name` string — Account or organization name associated with the GST registration.
  - `legal_name` string — Legal name of the organization associated with the GST registration.

## Response `200`

200

## 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)
