> Documentation index: https://developers.google.com/workspace/chat/llms.txt

- [HTTP request](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.threads/patch.md.txt#body.HTTP_TEMPLATE)
- [Path parameters](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.threads/patch.md.txt#body.PATH_PARAMETERS)
- [Query parameters](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.threads/patch.md.txt#body.QUERY_PARAMETERS)
- [Request body](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.threads/patch.md.txt#body.request_body)
- [Response body](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.threads/patch.md.txt#body.response_body)
- [Authorization scopes](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.threads/patch.md.txt#body.aspect)
- [Try it!](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.threads/patch.md.txt#try-it)

<br />

> [!WARNING]
> **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview.md.txt), which grants early access to certain features.

Updates a thread in a 1:1 App DM space.

<br />

Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize.md.txt):

- [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app.md.txt) with the authorization scope:
  - `https://www.googleapis.com/auth/chat.bot`

Only supported in 1:1 App DM spaces. Calls in other space types or using user authentication will return an error.

### HTTP request

`PATCH https://chat.googleapis.com/v1/{thread.name=spaces/*/threads/*}`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `thread.name` | `string` Identifier. Resource name of the thread. Example: `spaces/{space}/threads/{thread}` |

### Query parameters

| Parameters ||
|---|---|
| `updateMask` | ``string (`FieldMask` format)`` Required. The list of fields to update. Specifying `*` or `threadMetadata` replaces all `threadMetadata` fields, so the request must include both `title` and `icon`. To update a single field, specify `threadMetadata.title` or `threadMetadata.icon`. Currently supported field paths: - `threadMetadata` - `threadMetadata.title` - `threadMetadata.icon` |

### Request body

The request body contains an instance of `Thread`.

### Response body

If successful, the response body contains an instance of `Thread`.

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/chat.bot`

For more information, see the [Authorization guide](https://developers.google.com/workspace/chat/authenticate-authorize.md.txt).