Skip to main content
PATCH
Move a session to a project
Use this endpoint to move a conversation into a project, or back to general chat.

What EDN does

Changes which project the session belongs to and returns the updated session.

Required headers

Request

Path parameters

Body

Response

200 OK

Important behavior

  • Moving a session doesn’t move its memories. Which memory a request uses is set by project_id on each call.

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
project_id
string | null

The project to move the session into, or null to make it general chat.

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.