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

# Update a conversation (title and/or archive status).

> **Required scope:** write

**Required scope:** `write`

### Path parameters

<ParamField path="id" type="string" required>
  Conversation ID
</ParamField>

### Request body

`UpdateConversationRequest`

<ParamField body="archived" type="boolean">
  Set to true to archive, false to unarchive
</ParamField>

<ParamField body="title" type="string">
  New title
</ParamField>

### Response

`Conversation`

<ResponseField name="archived_at" type="string">
  Archive timestamp (RFC3339), if soft-deleted
</ResponseField>

<ResponseField name="created_at" type="string" required>
  Creation timestamp (RFC3339)
</ResponseField>

<ResponseField name="id" type="string" required>
  Unique conversation ID
</ResponseField>

<ResponseField name="metadata" type="object" required>
  Arbitrary metadata
</ResponseField>

<ResponseField name="session_id" type="string">
  Linked reasoning session ID
</ResponseField>

<ResponseField name="tenant_id" type="string" required>
  Tenant (organization) that owns this conversation
</ResponseField>

<ResponseField name="title" type="string" required>
  Human-readable title
</ResponseField>

<ResponseField name="updated_at" type="string" required>
  Last update timestamp (RFC3339)
</ResponseField>

<ResponseField name="user_id" type="string">
  Optional user who created the conversation
</ResponseField>

<ResponseField name="workflow_id" type="string" required>
  Workflow ID controlling agent behavior
</ResponseField>

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Updated conversation                               |
| `400` | Invalid request                                    |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | Conversation not found                             |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |
| `503` | Database not configured                            |

<RequestExample>
  ```bash cURL theme={null}
  curl --request PATCH \
    --url 'https://api.nsr.stateset.com/api/v1/conversations/{id}' \
    --header 'X-API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "archived": true,
    "title": "string"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "archived_at": "string",
    "created_at": "string",
    "id": "string",
    "metadata": null,
    "session_id": "string",
    "tenant_id": "string",
    "title": "string",
    "updated_at": "string",
    "user_id": "string",
    "workflow_id": "string"
  }
  ```
</ResponseExample>
