updateUserCustomStatus method

Future<void> updateUserCustomStatus(
  1. String userId,
  2. MmUpdateUserCustomStatusRequest mmUpdateUserCustomStatusRequest
)

Update user custom status

Updates a user's custom status by setting the value in the user's props and updates the user. Also save the given custom status to the recent custom statuses in the user's props ##### Permissions Must be logged in as the user whose custom status is being updated.

Parameters:

Implementation

Future<void> updateUserCustomStatus(
  String userId,
  MmUpdateUserCustomStatusRequest mmUpdateUserCustomStatusRequest,
) async {
  final response = await updateUserCustomStatusWithHttpInfo(
    userId,
    mmUpdateUserCustomStatusRequest,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}