testInboxRulesetWithHttpInfo method
Future<Response>
testInboxRulesetWithHttpInfo(
- String id,
- InboxRulesetTestOptions inboxRulesetTestOptions
Test an inbox ruleset
Test an inbox ruleset
Note: This method returns the HTTP Response
.
Parameters:
-
String id (required): ID of inbox ruleset
-
InboxRulesetTestOptions inboxRulesetTestOptions (required):
Implementation
Future<Response> testInboxRulesetWithHttpInfo(String id, InboxRulesetTestOptions inboxRulesetTestOptions,) async {
// ignore: prefer_const_declarations
final path = r'/rulesets/{id}/test'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = inboxRulesetTestOptions;
final queryParams = <QueryParam>[];
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,
);
}