setServerBusyWithHttpInfo method
Set the server busy (high load) flag
Marks the server as currently having high load which disables non-critical services such as search, statuses and typing notifications. Minimum server version: 5.20 ##### Permissions Must have manage_system
permission.
Note: This method returns the HTTP Response
.
Parameters:
- String seconds: Number of seconds until server is automatically marked as not busy.
Implementation
Future<Response> setServerBusyWithHttpInfo({
String? seconds,
}) async {
// ignore: prefer_const_declarations
final path = r'/server_busy';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (seconds != null) {
queryParams.addAll(_queryParams('', 'seconds', seconds));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}