---
title: "update"
method: PATCH
path: "/api/chat_interfaces/{id}"
tags: ["ChatInterface"]
---

# update

`PATCH /api/chat_interfaces/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `data` object, required
    - `type` string, required
    - `id` string, required
    - `attributes` object, required
      - `projectId` string
      - `name` string, required
      - `textInputEnabled` boolean, required
      - `textInputAgentId` string, required
      - `chatInterfaceButtons` object[]
        - `agentId` string, required
        - `label` string, required
        - `prompt` string, required

## Response `200`

Chat interface updated successfully

## Other responses

- `400` — PATCH /api/chat_interfaces rejects {"createdAt":1}
- `401` — Unauthorized - authentication credentials are missing or invalid
- `404` — Chat interface not found
- `422` — validates button label length when updating

---

[API](https://skmtc.net/treasure/apis/llm-api.md) · [All operations](https://skmtc.net/treasure/apis/llm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasure/llm-api/revisions/56f275763358/schema)
