---
title: "Update session title"
method: PATCH
path: "/api/chat/sessions/{session_id}/title"
tags: ["v2", "chat", "chat"]
---

# Update session title

`PATCH /api/chat/sessions/{session_id}/title`

Update the title of a chat session.

Allows the user to rename their chat session.

Args:
    session_id: The session ID to update.
    request: Request body containing the new title.
    user_id: The authenticated user's ID.

Returns:
    dict: Status of the update.

Raises:
    HTTPException: 404 if session not found or not owned by user.

## Path parameters

- `session_id` string, required

## Request body

- UpdateSessionTitleRequest — Request model for updating a session's title.
  - `title` string, required

## Response `200`

Successful Response

- object

## Other responses

- `401` — Authentication required
- `404` — Session not found or access denied
- `422` — Validation Error

---

[API](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/versions/382041c7ecb2/schema)
