updateUserCustomStatus method
Future<void>
updateUserCustomStatus(
- String userId,
- 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:
-
String userId (required): User ID
-
MmUpdateUserCustomStatusRequest mmUpdateUserCustomStatusRequest (required): Custom status object that is to be updated
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));
}
}