curl --request PUT \
--url http://localhost:3000/api/v1/chats/{id} \
--header 'Content-Type: application/json' \
--cookie nut-session= \
--data '
{
"title": "<string>",
"messages": [
{
"role": "user",
"content": "<string>",
"name": "<string>",
"toolCalls": [
{}
],
"toolCallId": "<string>"
}
]
}
'{
"success": true,
"data": {
"chat": {
"id": "<string>",
"title": "<string>",
"proposalId": "<string>",
"messages": [
{
"role": "user",
"content": "<string>",
"name": "<string>",
"toolCalls": [
{}
],
"toolCallId": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
}Update a chat
curl --request PUT \
--url http://localhost:3000/api/v1/chats/{id} \
--header 'Content-Type: application/json' \
--cookie nut-session= \
--data '
{
"title": "<string>",
"messages": [
{
"role": "user",
"content": "<string>",
"name": "<string>",
"toolCalls": [
{}
],
"toolCallId": "<string>"
}
]
}
'{
"success": true,
"data": {
"chat": {
"id": "<string>",
"title": "<string>",
"proposalId": "<string>",
"messages": [
{
"role": "user",
"content": "<string>",
"name": "<string>",
"toolCalls": [
{}
],
"toolCallId": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
}Session cookie authentication
Chat ID
Show child attributes
Chat updated
Show child attributes
Show child attributes
Chat ID
Chat title
Associated proposal ID
Show child attributes
user, assistant, system, tool Message content
Name (for tool messages)
Tool calls (for assistant messages)
Tool call ID (for tool messages)