mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
removed region from create
This commit is contained in:
@ -45,14 +45,13 @@ class CommunitySpaceManagementApi {
|
||||
}
|
||||
}
|
||||
|
||||
Future<CommunityModel?> createCommunity(String name, String description, String regionId) async {
|
||||
Future<CommunityModel?> createCommunity(String name, String description) async {
|
||||
try {
|
||||
final response = await HTTPService().post(
|
||||
path: ApiEndpoints.createCommunity,
|
||||
body: {
|
||||
'name': name,
|
||||
'description': description,
|
||||
'regionId': regionId,
|
||||
},
|
||||
expectedResponseModel: (json) {
|
||||
return CommunityModel.fromJson(json['data']);
|
||||
|
Reference in New Issue
Block a user