createTenantUserWithHttpInfo method
Future<Response>
createTenantUserWithHttpInfo(
- String tenantId,
- CreateTenantUserBody createTenantUserBody
Performs an HTTP 'POST /api/v1/tenant-users' operation and returns the Response.
Parameters:
-
String tenantId (required):
-
CreateTenantUserBody createTenantUserBody (required):
Implementation
Future<Response> createTenantUserWithHttpInfo(String tenantId, CreateTenantUserBody createTenantUserBody) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/tenant-users';
// ignore: prefer_final_locals
Object? postBody = createTenantUserBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'tenantId', tenantId));
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}