---
title: "Update Session"
method: PATCH
path: "/v1/messages/sessions/{session_id}"
tags: ["v1", "Messages"]
---

# Update Session

`PATCH /v1/messages/sessions/{session_id}`

Update session properties (e.g., title, metadata).
    
    **Authentication Required**: Bearer token, API key, or session token
    
    **Updatable Fields**:
    - `title`: Update the conversation title
    - `metadata`: Update session metadata (merged with existing)
    
    **Example Request**:
    ```json
    {
        "title": "Updated Session Title",
        "metadata": {"custom_field": "value"}
    }
    ```

## Path parameters

- `session_id` string, required

## Request body

- UpdateSessionRequest — Request model for updating session properties
  - `title` string, nullable — New title for the session
  - `metadata` object, nullable — Metadata to merge with existing session metadata

## Response `200`

Session updated successfully

- object — Generic JSON response object

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Session not found
- `422` — Validation Error
- `500` — Internal server error

## Changes

- **2026-06-11** `f29d29d1ad16` — 1 breaking
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
- **2026-06-11** `22d84aa060d6` — 1 breaking
  - the response's body type/format changed from `object`/`` to ``/`` for status `200`
- **2026-06-10** `02daa1da4e82` — 1 breaking
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
- **2026-03-13** `0e4854909d2a` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-02-10** `b0857910e816` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/papr-ai/apis/papr-memory-api/changes/v1/messages/sessions/:session_id/patch.md)

---

[API](https://skmtc.dev/papr-ai/apis/papr-memory-api.md) · [All operations](https://skmtc.dev/papr-ai/apis/papr-memory-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/papr-ai/papr-memory-api/revisions/b553be9aad37/schema)
