> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stax.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update email thread

> Update thread properties like read status, bookmark, importance, and requires_response flag. Updates are synced to the email provider (Gmail/Outlook). Setting read to false only affects the latest message in the thread.



## OpenAPI

````yaml /api-reference/cx/swagger.json patch /inbox/thread/{thread}
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /inbox/thread/{thread}:
    patch:
      tags:
        - Inbox
      summary: Update email thread
      description: >-
        Update thread properties like read status, bookmark, importance, and
        requires_response flag. Updates are synced to the email provider
        (Gmail/Outlook). Setting read to false only affects the latest message
        in the thread.
      parameters:
        - description: Thread ID
          name: thread
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
        description: >-
          Update data (read: bool, bookmark: bool, importance: number,
          requires_response: bool, deleted_at: null)
        required: true
      responses:
        '200':
          description: Thread updated successfully
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: boolean
        '400':
          description: >-
            Email connection not live, failed to parse request body, or thread
            not found
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.