Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Update LeaderboardService to use PUT instead of POST

hunteraraujoc94835432ea8
diff --git a/frontend/lib/services/leaderboard_service.dart b/frontend/lib/services/leaderboard_service.dart
index 3673cfc41b..00e4870ede 100644
--- a/frontend/lib/services/leaderboard_service.dart
+++ b/frontend/lib/services/leaderboard_service.dart
@@ -12,7 +12,7 @@ class LeaderboardService {
/// [benchmarkRun] is a BenchmarkRun object representing the data of a completed benchmark.
Future<Map<String, dynamic>> submitReport(BenchmarkRun benchmarkRun) async {
try {
- return await api.post(
+ return await api.put(
'api/reports',
benchmarkRun.toJson(),
apiType: ApiType.leaderboard,