> ## 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

**id** `string` *required*

Conversation ID

### Request body

`UpdateConversationRequest`

**archived** `boolean`

Set to true to archive, false to unarchive

**title** `string`

New title

### Response

`Conversation`

**archived\_at** `string`

Archive timestamp (RFC3339), if soft-deleted

**created\_at** `string` *required*

Creation timestamp (RFC3339)

**id** `string` *required*

Unique conversation ID

**metadata** `object` *required*

Arbitrary metadata

**session\_id** `string`

Linked reasoning session ID

**tenant\_id** `string` *required*

Tenant (organization) that owns this conversation

**title** `string` *required*

Human-readable title

**updated\_at** `string` *required*

Last update timestamp (RFC3339)

**user\_id** `string`

Optional user who created the conversation

**workflow\_id** `string` *required*

Workflow ID controlling agent behavior

### 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 |

```bash cURL theme={null}
curl --request PATCH \
  --url 'https://api.nsr.stateset.com/api/v1/conversations/{id}' \
  --header "X-API-Key: $STATESET_NSR_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "archived": false,
  "title": "Replacement tent pole set"
}'
```

```json 200 theme={null}
{
  "archived_at": "2026-08-31T14:22:05Z",
  "created_at": "2026-08-31T14:22:05Z",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "metadata": null,
  "session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "title": "Replacement tent pole set",
  "updated_at": "2026-08-31T14:22:05Z",
  "user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "workflow_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
```


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