updateTenantWithHttpInfo method
Future<Response>
updateTenantWithHttpInfo(
- String tenantId,
- String id,
- UpdateTenantBody updateTenantBody
Performs an HTTP 'PATCH /api/v1/tenants/{id}' operation and returns the Response.
Parameters:
-
String tenantId (required):
-
String id (required):
-
UpdateTenantBody updateTenantBody (required):
Implementation
Future<Response> updateTenantWithHttpInfo(String tenantId, String id, UpdateTenantBody updateTenantBody) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/tenants/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = updateTenantBody;
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,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}