Skip to main content
PATCH
Rename a session
Use this endpoint to rename a conversation.

What EDN does

Changes the session’s title and returns the updated session.

Required headers

Request

Path parameters

Body

Response

200 OK

Errors

See Error handling.

Authorizations

Authorization
string
header
required

Your EDN API key, sent as Bearer YOUR_API_KEY. Create keys in the Console.

Path Parameters

session_id
string
required

The session ID.

Body

application/json
title
string | null

The new title.

Example:

"Website launch planning"

Response

Successful Response

created_at
string
required

When the session was created (ISO 8601, UTC).

id
string
required

The session ID.

last_message_preview
string | null
required

The first 200 characters of the latest saved turn, or null.

message_count
integer
required

How many messages are stored in the session.

title
string
required

The session's title.

updated_at
string
required

When the session last changed (ISO 8601, UTC).

is_archived
boolean
default:false

true when the session was archived in the Console.

project_id
string | null

The project the session belongs to, or null for general chat.