updateConfigWithHttpInfo method
Update configuration
Submit a new configuration for the server to use. As of server version 4.8, the PluginSettings.EnableUploads
setting cannot be modified by this endpoint. Note that the parameters that aren't set in the configuration that you provide will be reset to default values. Therefore, if you want to change a configuration parameter and leave the other ones unchanged, you need to get the existing configuration first, change the field that you want, then put that new configuration. ##### Permissions Must have manage_system
permission.
Note: This method returns the HTTP Response
.
Parameters:
- MmConfig mmConfig (required): Mattermost configuration
Implementation
Future<Response> updateConfigWithHttpInfo(
MmConfig mmConfig,
) async {
// ignore: prefer_const_declarations
final path = r'/config';
// 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,
);
}