---
title: "Update Custom Fields"
method: PATCH
path: "/reservations/{stay_code}/custom_fields"
tags: ["Reservations"]
---

# Update Custom Fields

`PATCH /reservations/{stay_code}/custom_fields`

Update custom fields for a stay. For more information, please refer to the [Custom Fields Guide](/reference/custom-fields-guide)

## Path parameters

- `stay_code` string, required

## Request body

- object
  - `custom_fields` object — The custom fields to update. You can submit any field for creation, update, or deletion. Field values must be of type string. If the field does not exist, it will be created; if it exists, it will be updated. To delete a field, set its value to null.
    - `online_checkin_url` string, nullable — This is just an example.

## Response `200`

The request has been successfully submitted.

- object
  - `request_id` string, required — Unique identifier for the request.
  - `error_code` integer, required — Numeric error code representing the status of the response. A value of `200` indicates success. <br> See the [Error Codes](/reference/error-manual#error-codes) section for more information.
  - `error_msg` string, required — Message detailing the status of the response.
  - `data` object, required
    - `custom_fields` object, nullable, required — Custom fields.

---

[API](https://skmtc.net/hostex/apis/hostex-api.md) · [All operations](https://skmtc.net/hostex/apis/hostex-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostex/hostex-api/versions/a3fa555dee66/schema)
