editGroup static method
Edit an existing group. You must have suitable permissions in the group to perform this operation. This latest revision will only edit the fields you pass in - pass null for properties you want to leave unaltered.
Implementation
static Future<Int32Response> editGroup (
HttpClient client,
String groupId,
GroupEditAction body
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _groupId = '$groupId';
final HttpClientConfig config = HttpClientConfig('POST', '/GroupV2/$_groupId/Edit/', params);
config.body = await body.asyncToJson();
config.bodyContentType = 'application/json';
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return Int32Response.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}