createInboxRulesetWithHttpInfo method

Future<Response> createInboxRulesetWithHttpInfo(
  1. String inboxId,
  2. 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:

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,
  );
}