postUserRecentCustomStatusDelete method
Future<void>
postUserRecentCustomStatusDelete(
- 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> postUserRecentCustomStatusDelete(
String userId,
MmRemoveRecentCustomStatusRequest mmRemoveRecentCustomStatusRequest,
) async {
final response = await postUserRecentCustomStatusDeleteWithHttpInfo(
userId,
mmRemoveRecentCustomStatusRequest,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
}
}