---
title: "Update session title"
method: PATCH
path: "/ocs/v2.php/apps/assistant/chat/update_session"
tags: ["chat_api"]
---

# Update session title

`PATCH /ocs/v2.php/apps/assistant/chat/update_session`

Update the title of a chat session

## Headers

- `OCS-APIRequest` boolean, required

## Request body

- object
  - `sessionId` integer, required — The chat session ID
  - `title` string, required — The new chat session title

## Response `200`

The title has been updated successfully

- object

## Other responses

- `401` — Not logged in
- `404` — Session not found
- `500`

## Changes

- **2026-05-06** `3fb3915bb182` — 1 info
  - added the non-success response with the status `404`
- **2025-10-13** `992cd27e50b6` — 2 breaking, 1 info
  - the response's body type/format changed from `object`/`` to ``/`` for status `401`
  - removed the required property `error` from the response with the `401` status
  - added `subschema #1, subschema #2` to the response body `anyOf` list for the response status `401`
- **2025-03-11** `969dd20410d6` — 1 info
  - endpoint added
- **2024-04-15** `baf79495237b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/nextcloud/apis/assistant/changes/ocs/v2.php/apps/assistant/chat/update_session/patch.md)

---

[API](https://skmtc.dev/nextcloud/apis/assistant.md) · [All operations](https://skmtc.dev/nextcloud/apis/assistant/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nextcloud/assistant/revisions/653db65dc164/schema)
