createGroupWithHttpInfo method
Create a group
Creates a new group resource.
Note: This method returns the HTTP Response
.
Parameters:
-
String account (required): The identifier (UUID) or slug of your Keygen account.
-
CreateGroupRequest createGroupRequest (required):
Implementation
Future<Response> createGroupWithHttpInfo(String account, CreateGroupRequest createGroupRequest,) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/groups'
.replaceAll('{account}', account);
// ignore: prefer_final_locals
Object? postBody = createGroupRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/vnd.api+json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}