BulkActionsControllerAPI

All URIs are relative to https://api.mailslurp.com

MethodHTTP requestDescription
bulkCreateInboxesPOST /bulk/inboxesBulk create Inboxes (email addresses)
bulkDeleteInboxesDELETE /bulk/inboxesBulk Delete Inboxes
bulkSendEmailsPOST /bulk/sendBulk Send Emails

bulkCreateInboxes

    open class func bulkCreateInboxes( count: Int) -> Promise<[Inbox]>

Bulk create Inboxes (email addresses)

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import mailslurp

let count = 987 // Int | Number of inboxes to be created in bulk

// Bulk create Inboxes (email addresses)
BulkActionsControllerAPI.bulkCreateInboxes(count: count).then {
         // when the promise is fulfilled
     }.always {
         // regardless of whether the promise is fulfilled, or rejected
     }.catch { errorType in
         // when the promise is rejected
}

Parameters

NameTypeDescriptionNotes
countIntNumber of inboxes to be created in bulk

Return type

**[Inbox]**

Authorization

API_KEY

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to ]

bulkDeleteInboxes

    open class func bulkDeleteInboxes( ids: [UUID]) -> Promise<Void>

Bulk Delete Inboxes

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import mailslurp

let ids = [123] // [UUID] | ids

// Bulk Delete Inboxes
BulkActionsControllerAPI.bulkDeleteInboxes(ids: ids).then {
         // when the promise is fulfilled
     }.always {
         // regardless of whether the promise is fulfilled, or rejected
     }.catch { errorType in
         // when the promise is rejected
}

Parameters

NameTypeDescriptionNotes
ids**[UUID]**ids

Return type

Void (empty response body)

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to ]

bulkSendEmails

    open class func bulkSendEmails( bulkSendEmailOptions: BulkSendEmailOptions) -> Promise<Void>

Bulk Send Emails

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import mailslurp

let bulkSendEmailOptions = BulkSendEmailOptions(inboxIds: [123], sendEmailOptions: SendEmailOptions(addTrackingPixel: false, attachments: ["attachments_example"], bcc: ["bcc_example"], body: "body_example", cc: ["cc_example"], charset: "charset_example", from: "from_example", html: false, isHTML: false, replyTo: "replyTo_example", sendStrategy: "sendStrategy_example", subject: "subject_example", template: 123, templateVariables: "TODO", to: ["to_example"], toContacts: [123], toGroup: 123, useInboxName: false)) // BulkSendEmailOptions | bulkSendEmailOptions

// Bulk Send Emails
BulkActionsControllerAPI.bulkSendEmails(bulkSendEmailOptions: bulkSendEmailOptions).then {
         // when the promise is fulfilled
     }.always {
         // regardless of whether the promise is fulfilled, or rejected
     }.catch { errorType in
         // when the promise is rejected
}

Parameters

NameTypeDescriptionNotes
bulkSendEmailOptionsBulkSendEmailOptionsbulkSendEmailOptions

Return type

Void (empty response body)

Authorization

API_KEY

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to ]