createUserWithHttpInfo method
Creates a new user
Creates a new user on the organization account
Note: This method returns the HTTP Response.
Parameters:
-
String username (required): Username of the user, has to be unique for everybody
-
UserRequestBody userRequestBody (required): User data
Implementation
Future<Response> createUserWithHttpInfo(
String username,
UserRequestBody userRequestBody,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{username}'.replaceAll('{username}', username);
// ignore: prefer_final_locals
Object? postBody = userRequestBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}