---
title: "Rename chat history section"
method: PUT
path: "/api/v0/agent/session-sections/{section_id}"
tags: ["Agent"]
---

# Rename chat history section

`PUT /api/v0/agent/session-sections/{section_id}`

## Request

- Base URL: `https://api.outerport.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outerport.com/api/v0/agent/session-sections/{section_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/outerport/apis/outerport-api/docs/api/v0/agent/session-sections/:section_id/put.ts> (a function with typed inputs; its response is checked against the schema)

Rename one of the user's chat history sections.

## Path parameters

- `section_id` string, uuid, required

## Request body

- AgentSessionSectionWriteRequest: Request body for creating or renaming a chat history section.
  - `name` string, required: The section's name; surrounding whitespace is removed.

## Response `200`

Successful Response

- AgentSessionSectionGetResponse: A named section of the user's chat history.
  - `id` string, uuid, required: The ID of the section.
  - `name` string, required: The name of the section.
  - `created_at` string, date-time, required: When the section was created.
  - `updated_at` string, date-time, required: When the section was last renamed.

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-11** `f9dcfeb78d3d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/outerport/apis/outerport-api/changes/api/v0/agent/session-sections/:section_id/put.md)

---

[API](https://skmtc.dev/outerport/apis/outerport-api.md) - [All operations](https://skmtc.dev/outerport/apis/outerport-api/llms.txt) - [OpenAPI document](https://skmtc.dev/outerport/apis/outerport-api/revisions/08b5bf6f7f18?raw)
