Skip to main content
PATCH
/
v1
/
chat
/
sessions
/
{id}
Update chat session
curl --request PATCH \
  --url http://co-mind-platform-host/v1/chat/sessions/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "knowledgebase_ids": [
    "<string>"
  ]
}
'
{
  "id": "session_xyz789",
  "object": "chat.session",
  "name": "Q&A about Product Docs",
  "knowledgebase_ids": [
    "<string>"
  ],
  "model": "gpt-4o-mini",
  "temperature": 123,
  "system_message": "<string>",
  "created_at": 1699564800,
  "updated_at": 1699564900,
  "message_count": 10
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Supports two token types:

  • JWT Access Token — obtained via POST /v1/auth/login
  • Personal Access Token (PAT) — created via POST /v1/api-tokens, format: cmnd_<tokenId>.<secret>

Path Parameters

id
string
required

The session ID

Body

application/json
name
string

Updated session name

knowledgebase_ids
string[]

Updated knowledge base IDs

Response

Session updated successfully

id
string
Example:

"session_xyz789"

object
string
Example:

"chat.session"

name
string
Example:

"Q&A about Product Docs"

knowledgebase_ids
string[]
model
string
Example:

"gpt-4o-mini"

temperature
number
system_message
string
created_at
integer

Unix timestamp

Example:

1699564800

updated_at
integer

Unix timestamp

Example:

1699564900

message_count
integer
Example:

10