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

---

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