Skip to main content
PATCH
https://ageneral.ai
/
v1
/
chat
/
sessions
/
{id}
Update chat session
curl --request PATCH \
  --url https://ageneral.ai/v1/chat/sessions/{id} \
  --header 'Ageneral-Project-Id: <ageneral-project-id>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "lastModelId": "<string>"
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

Session JWT from Ageneral sign-in. Send as Authorization: Bearer <token>.

Headers

Ageneral-Project-Id
string
required

Project id. You must be a member with access.

Path Parameters

id
string
required

Chat session id.

Body

application/json

At least one of name or lastModelId must be present.

name
string
lastModelId
string | null

Response

Success.

ok
boolean
required
Example:

true