---
title: "/chat/{id}/custom-fields"
method: PUT
path: "/chat/{id}/custom-fields"
tags: ["Chat"]
---

# /chat/{id}/custom-fields

`PUT /chat/{id}/custom-fields`

## Request

- Base URL: `<<api-url>>` (relative, and the document’s source URL is not known)
- URL: `<<api-url>>/chat/{id}/custom-fields`
- Auth: API key in header `X-API-KEY`

Set custom fields on a specific chat

## Path parameters

- `id` string, required

## Headers

- `octa-agent-email` string

## Request body

- UpdateRoomCustomFieldsDto
  - `customFields` RoomCustomField[], required: List of custom fields to set on the chat
    - `id` string, required: Custom field identifier (e.g. customField.field_name)
    - `title` string, required: Display title of the custom field
    - `value` union, required: Value to set for the custom field
      - string
      - number
      - boolean
    - `type` string, required: Data type of the custom field value (e.g. string, number, boolean)

## Response `204`

---

[API](https://skmtc.dev/octadesk/apis/octadesk-api.md) - [All operations](https://skmtc.dev/octadesk/apis/octadesk-api/llms.txt) - [OpenAPI document](https://skmtc.dev/octadesk/apis/octadesk-api/revisions/cf3224b37a34?raw)
