patchConfigWithHttpInfo method

Future<Response> patchConfigWithHttpInfo(
  1. MmConfig mmConfig
)

Patch configuration

Submit configuration to patch. As of server version 4.8, the PluginSettings.EnableUploads setting cannot be modified by this endpoint. ##### Permissions Must have manage_system permission. Minimum server version: 5.20

Note: This method returns the HTTP Response.

Parameters:

  • MmConfig mmConfig (required): Mattermost configuration

Implementation

Future<Response> patchConfigWithHttpInfo(
  MmConfig mmConfig,
) async {
  // ignore: prefer_const_declarations
  final path = r'/config/patch';

  // ignore: prefer_final_locals
  Object? postBody = mmConfig;

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