cURL
curl --request PATCH \ --url https://app.sure.am/api/v1/chats/{id} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "title": "Updated chat title" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "title": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "messages": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "type": "user_message", "role": "user", "content": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "model": "<string>", "tool_calls": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "function_name": "<string>", "function_arguments": {}, "created_at": "2023-11-07T05:31:56Z", "function_result": {} } ] } ], "error": "<string>", "pagination": { "page": 2, "per_page": 2, "total_count": 1, "total_pages": 1 } }
Bearer token with read scope
Chat ID
"Updated chat title"
chat updated
Show child attributes