deletePreferencesWithHttpInfo method
Delete user's preferences
Delete a list of the user's preferences. ##### Permissions Must be logged in as the user being updated or have the edit_other_users
permission.
Note: This method returns the HTTP Response
.
Parameters:
-
String userId (required): User GUID
-
List<MmPreference> mmPreference (required): List of preference objects
Implementation
Future<Response> deletePreferencesWithHttpInfo(
String userId,
List<MmPreference> mmPreference,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/preferences/delete'.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody = mmPreference;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}