patchSchemeWithHttpInfo method
Future<Response>
patchSchemeWithHttpInfo(
- String schemeId,
- MmPatchSchemeRequest mmPatchSchemeRequest
Patch a scheme
Partially update a scheme by providing only the fields you want to update. Omitted fields will not be updated. The fields that can be updated are defined in the request body, all other provided fields will be ignored. ##### Permissions manage_system
permission is required. Minimum server version: 5.0
Note: This method returns the HTTP Response
.
Parameters:
-
String schemeId (required): Scheme GUID
-
MmPatchSchemeRequest mmPatchSchemeRequest (required): Scheme object to be updated
Implementation
Future<Response> patchSchemeWithHttpInfo(
String schemeId,
MmPatchSchemeRequest mmPatchSchemeRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/schemes/{scheme_id}/patch'.replaceAll('{scheme_id}', schemeId);
// ignore: prefer_final_locals
Object? postBody = mmPatchSchemeRequest;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}