---
title: "Update chat"
method: PATCH
path: "/api/experimental/chats/{chat}"
tags: ["Chats"]
---

# Update chat

`PATCH /api/experimental/chats/{chat}`

Experimental: this endpoint is subject to change.

## Path parameters

- `chat` string, uuid, required

## Request body

- CodersdkUpdateChatRequest
  - `archived` boolean
  - `labels` object
  - `pin_order` integer — PinOrder controls the chat's pinned state and position. - nil: no change to pin state. - 0: unpin the chat. - >0 (chat is unpinned): pin the chat, appending it to the end of the pinned list. The specific value is ignored; the server assigns the next available position. - >0 (chat is already pinned): move the chat to the requested position, shifting neighbors as needed. The value is clamped to [1, pinned_count].
  - `plan_mode` 'plan'
  - `title` string
  - `workspace_id` string, uuid

## Response `204`

No Content

---

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