updateUserStatusWithHttpInfo method

Future<Response> updateUserStatusWithHttpInfo(
  1. String userId,
  2. MmUpdateUserStatusRequest mmUpdateUserStatusRequest
)

Update user status

Manually set a user's status. When setting a user's status, the status will remain that value until set "online" again, which will return the status to being automatically updated based on user activity. ##### Permissions Must have edit_other_users permission for the team.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> updateUserStatusWithHttpInfo(
  String userId,
  MmUpdateUserStatusRequest mmUpdateUserStatusRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/{user_id}/status'.replaceAll('{user_id}', userId);

  // ignore: prefer_final_locals
  Object? postBody = mmUpdateUserStatusRequest;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'PUT',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}