curl --request PUT \
--url https://api.example.com/v1/chats/{chat_id} \
--header 'Content-Type: application/json' \
--data '
{
"chat_id": "<string>",
"messages": [
{
"role": "<string>",
"content": "<string>",
"timestamp": "<string>",
"chat_id": "<string>"
}
]
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Save s user’s chat into the chat history.
curl --request PUT \
--url https://api.example.com/v1/chats/{chat_id} \
--header 'Content-Type: application/json' \
--data '
{
"chat_id": "<string>",
"messages": [
{
"role": "<string>",
"content": "<string>",
"timestamp": "<string>",
"chat_id": "<string>"
}
]
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}