updateChannelSchemeWithHttpInfo method

Future<Response> updateChannelSchemeWithHttpInfo(
  1. String channelId,
  2. MmUpdateTeamSchemeRequest mmUpdateTeamSchemeRequest
)

Set a channel's scheme

Set a channel's scheme, more specifically sets the scheme_id value of a channel record. ##### Permissions Must have manage_system permission. Minimum server version: 4.10

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> updateChannelSchemeWithHttpInfo(
  String channelId,
  MmUpdateTeamSchemeRequest mmUpdateTeamSchemeRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/channels/{channel_id}/scheme'.replaceAll('{channel_id}', channelId);

  // ignore: prefer_final_locals
  Object? postBody = mmUpdateTeamSchemeRequest;

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