## Update a chat

`chats.update(strchat_id, ChatUpdateParams**kwargs)  -> ChatUpdateResponse`

**put** `/v3/chats/{chatId}`

Update chat properties such as display name and group chat icon.

Listen for `chat.group_name_updated`, `chat.group_icon_updated`,
`chat.group_name_update_failed`, or `chat.group_icon_update_failed`
webhook events to confirm the outcome.

### Parameters

- `chat_id: str`

- `display_name: Optional[str]`

  New display name for the chat (group chats only)

- `group_chat_icon: Optional[str]`

  URL of an image to set as the group chat icon (group chats only)

### Returns

- `class ChatUpdateResponse: …`

  - `chat_id: Optional[str]`

  - `status: Optional[str]`

### Example

```python
import os
from linq import LinqAPIV3

client = LinqAPIV3(
    api_key=os.environ.get("LINQ_API_V3_API_KEY"),  # This is the default and can be omitted
)
chat = client.chats.update(
    chat_id="550e8400-e29b-41d4-a716-446655440000",
    display_name="Team Discussion",
)
print(chat.chat_id)
```

#### Response

```json
{
  "chat_id": "550e8400-e29b-41d4-a716-446655440000",
  "status": "pending"
}
```
