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