testSiteURLWithHttpInfo method
Checks the validity of a Site URL
Sends a Ping request to the mattermost server using the specified Site URL. ##### Permissions Must have manage_system
permission. Minimum server version: 5.16
Note: This method returns the HTTP Response
.
Parameters:
- MmTestSiteURLRequest mmTestSiteURLRequest (required):
Implementation
Future<Response> testSiteURLWithHttpInfo(
MmTestSiteURLRequest mmTestSiteURLRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/site_url/test';
// ignore: prefer_final_locals
Object? postBody = mmTestSiteURLRequest;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}