---
title: "Rename a session"
method: POST
path: "/v3/organizations/{orgId}/sessions/{sessionId}/rename"
tags: ["Sessions"]
---

# Rename a session

`POST /v3/organizations/{orgId}/sessions/{sessionId}/rename`

## Request

- Base URL: `https://api.reasonmachines.com`
- URL: `https://api.reasonmachines.com/v3/organizations/{orgId}/sessions/{sessionId}/rename`
- Auth: HTTP bearer

Requires run. Sets the Session's title for everyone in the Workspace. An empty or null title restores the generated one.

<sub>Scope: `run`</sub>

## Request body

- object
  - `title` string, nullable, required: The new title. Null or an empty string clears the rename, restoring the generated title.

## Response `200`

The stored title.

- SessionRenamed
  - `ok` true, required: Always true on success.
  - `title` string, nullable, required: The title now stored for the Session; null when the rename was cleared and no generated title exists.

## Other responses

- `400`: Invalid request.
- `401`: Missing, invalid, or expired key.
- `403`: The key lacks the required scope or role.
- `404`: Resource not found.
- `409`: The Session's state does not allow this now; `error` says why (for example not_terminal while a turn runs).
- `429`: Too many requests. Retry after the number of seconds in the `Retry-After` response header.
- `503`: Product writes are disabled.

## Changes

- **2026-10-15** `52a86b8b91b0`: 1 info
  - added the media type `application/json` for the response with the status `200`
- **2026-10-15** `fad7b15a74a7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ara/apis/reason-api/changes/v3/organizations/:orgId/sessions/:sessionId/rename/post.md)

---

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