---
title: "Update an existing AI chat's metadata, such as label or shareAccess information"
method: PATCH
path: "/v1/org/{orgId}/ai/chat/{chatId}"
tags: ["ai"]
---

# Update an existing AI chat's metadata, such as label or shareAccess information

`PATCH /v1/org/{orgId}/ai/chat/{chatId}`

## Path parameters

- `orgId` string, required
- `chatId` string, required

## Request body

- UpdateAiChat
  - `label` string — label for the chat (defaults to the first question asked)
  - `shareAccess` ShareAccess[] — users who are specifically granted permission to view or edit this chat
    - `access` 'NONE' | 'LIMITED_READ' | 'LIMITED_WRITE' | 'STANDARD_READ' | 'STANDARD_WRITE' | 'COMPENSATION_READ' | 'FULL_READ' | 'COMP_PLANNING_PARTICIPANT' | 'COMPENSATION_WRITE' | 'WRITE' | 'COMPENSATION_OWNER' | 'OWNER', required — access permission level
    - `userId` string — user id
    - `groupId` string — group id
    - `everyone` boolean — grant this access level to everyone in the org (mutually exclusive with userId/groupId)
    - `fields` string — fields

## Response `204`

successful operation

## Other responses

- `400` — invalid data
- `401` — not authorized
- `403` — permission denied
- `404` — not found

---

[API](https://skmtc.dev/charthop/apis/charthop-api.md) · [All operations](https://skmtc.dev/charthop/apis/charthop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/charthop/charthop-api/revisions/4685d95a20b1/schema)
