removeRecentCustomStatus method
Future<void>
removeRecentCustomStatus(
- String userId,
- MmRemoveRecentCustomStatusRequest mmRemoveRecentCustomStatusRequest
Delete user's recent custom status
Deletes a user's recent custom status by removing the specific status from the recentCustomStatuses in the user's props and updates the user. ##### Permissions Must be logged in as the user whose recent custom status is being deleted.
Parameters:
-
String userId (required): User ID
-
MmRemoveRecentCustomStatusRequest mmRemoveRecentCustomStatusRequest (required): Custom Status object that is to be removed from the recent custom statuses.
Implementation
Future<void> removeRecentCustomStatus(
String userId,
MmRemoveRecentCustomStatusRequest mmRemoveRecentCustomStatusRequest,
) async {
final response = await removeRecentCustomStatusWithHttpInfo(
userId,
mmRemoveRecentCustomStatusRequest,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
}
}