curl --request PUT \
--url http://localhost:3001/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:3001/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"
}
}
}