@@ -7,7 +7,7 @@ import 'package:path/path.dart' as path_util;
77
88import 'flutterflow_ignore.dart' ;
99
10- const kDefaultEndpoint = 'https://api.flutterflow.io/v1 ' ;
10+ const kDefaultEndpoint = 'https://api.flutterflow.io/v2 ' ;
1111
1212/// The `FlutterFlowApi` class provides methods for exporting code from a
1313/// FlutterFlow project.
@@ -179,7 +179,7 @@ Future<dynamic> _callExport({
179179 required bool exportAsDebug,
180180}) async {
181181 final body = jsonEncode ({
182- 'project ' : { 'path' : 'projects/$ projectId ' } ,
182+ 'project_id ' : projectId,
183183 if (branchName != null ) 'branch_name' : branchName,
184184 if (environmentName != null ) 'environment_name' : environmentName,
185185 if (commitHash != null ) 'commit' : {'path' : 'commits/$commitHash ' },
@@ -328,7 +328,7 @@ Future firebaseDeploy({
328328}) async {
329329 final endpointUrl = Uri .parse (endpoint);
330330 final body = jsonEncode ({
331- 'project ' : { 'path' : 'projects/$ projectId ' } ,
331+ 'project_id ' : projectId,
332332 'append_rules' : appendRules,
333333 });
334334 final result = await _callEndpoint (
0 commit comments