PUT
/
api
/
v1
/
threads
/
{id}
/
Rename thread
curl --request PUT \
  --url https://api.camelai.com/api/v1/threads/{id}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>"
}'
{
  "id": 123,
  "title": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "last_modified": "2023-11-07T05:31:56Z",
  "connection_ids": "<any>",
  "connection_names": "<string>",
  "message_count": "<string>",
  "model": "sonnet-4",
  "source": "UI",
  "uid": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme

Path Parameters

id
string
required

Body

application/json
title
string
required

New title for the thread

Minimum length: 1

Response

Serializer for Thread model.

id
integer
required
title
string
required
Maximum length: 255
created_at
string<date-time>
required
last_modified
string<date-time>
required
connection_names
string
required

List of connection names associated with this thread

message_count
string
required

Total number of messages in the thread

source
enum<string>
required

How this thread was created

  • UI - Web UI
  • API - REST API
  • MCP - MCP Server
Available options:
UI,
API,
MCP
uid
string | null
required

User identifier who created this thread

connection_ids
any

List of connection IDs that were used in this thread

model
enum<string>

The model used for this thread

  • sonnet-4 - Sonnet 4
  • o3 - o3
  • o4-mini - o4-mini
  • gpt-4.1 - GPT-4.1
  • gpt-5 - GPT-5
Available options:
sonnet-4,
o3,
o4-mini,
gpt-4.1,
gpt-5