# Update Chat **PATCH /api/v1/chats/{chatID}** Updates the title, tags, or metadata of an existing chat session. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Bearer auth ## Parameters ### Path parameters - **chatID** (integer) Chat ID ### Body: application/json (object) Fields to update - **metadata** (object) Use the structured type - **tags** (array[string]) - **title** (string) ## Responses ### 200 Updated chat details #### Body: application/json (object) - **created_at** (string) - **id** (integer) - **messages** (array[object]) - **metadata** (object) Use the structured type - **organization_id** (integer) - **tags** (array[string]) Parsed tags - **title** (string) - **updated_at** (string) - **user_id** (integer) Nullable for anonymous chats ### 400 Invalid chat ID or request data #### Body: application/json (object) - ***** (string) ### 401 Unauthorized (JWT invalid/missing or Org ID not found) #### Body: application/json (object) - ***** (string) ### 403 Permission denied (Chat doesn't belong to user's org) #### Body: application/json (object) - ***** (string) ### 404 Chat not found #### Body: application/json (object) - ***** (string) ### 500 Failed to get or update chat, or process tags/metadata #### Body: application/json (object) - ***** (string) [Powered by Bump.sh](https://bump.sh)