patchRoleWithHttpInfo method
Patch a role
Partially update a role 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: 4.9
Note: This method returns the HTTP Response
.
Parameters:
-
String roleId (required): Role GUID
-
MmPatchRoleRequest mmPatchRoleRequest (required): Role object to be updated
Implementation
Future<Response> patchRoleWithHttpInfo(
String roleId,
MmPatchRoleRequest mmPatchRoleRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/roles/{role_id}/patch'.replaceAll('{role_id}', roleId);
// ignore: prefer_final_locals
Object? postBody = mmPatchRoleRequest;
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,
);
}