updateChannelNotifyPropsWithHttpInfo method

Future<Response> updateChannelNotifyPropsWithHttpInfo(
  1. String channelId,
  2. String userId,
  3. MmChannelNotifyProps mmChannelNotifyProps
)

Update channel notifications

Update a user's notification properties for a channel. Only the provided fields are updated. ##### Permissions Must be logged in as the user or have edit_other_users permission.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> updateChannelNotifyPropsWithHttpInfo(
  String channelId,
  String userId,
  MmChannelNotifyProps mmChannelNotifyProps,
) async {
  // ignore: prefer_const_declarations
  final path = r'/channels/{channel_id}/members/{user_id}/notify_props'
      .replaceAll('{channel_id}', channelId)
      .replaceAll('{user_id}', userId);

  // ignore: prefer_final_locals
  Object? postBody = mmChannelNotifyProps;

  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,
  );
}