curl --request PATCH \ --url https://api.yourdomain.com/api/chats/chat_123abc \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Updated Chat Name" }'
{ "success": true, "message": "Chat updated successfully", "chat": { "id": "chat_123abc", "name": "Updated Chat Name", "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-17T11:45:00Z" } }
Updates a specific chat for the authenticated user