createInboxRulesetWithHttpInfo method
Future<Response>
createInboxRulesetWithHttpInfo(
- String inboxId,
- CreateInboxRulesetOptions createInboxRulesetOptions
Create an inbox ruleset
Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving
Note: This method returns the HTTP Response
.
Parameters:
-
String inboxId (required): inboxId
-
CreateInboxRulesetOptions createInboxRulesetOptions (required):
Implementation
Future<Response> createInboxRulesetWithHttpInfo(String inboxId, CreateInboxRulesetOptions createInboxRulesetOptions,) async {
// ignore: prefer_const_declarations
final path = r'/inboxes/{inboxId}/rulesets'
.replaceAll('{inboxId}', inboxId);
// ignore: prefer_final_locals
Object? postBody = createInboxRulesetOptions;
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,
);
}