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

kotlin.collections.List bulkCreateInboxes(count)

Bulk create Inboxes (email addresses)

Example

// Import classes:
//import com.mailslurp.infrastructure.*
//import com.mailslurp.models.*

val apiInstance = BulkActionsControllerApi()
val count : kotlin.Int = 56 // kotlin.Int | Number of inboxes to be created in bulk
try {
    val result : kotlin.collections.List<Inbox> = apiInstance.bulkCreateInboxes(count)
    println(result)
} catch (e: ClientException) {
    println("4xx response calling BulkActionsControllerApi#bulkCreateInboxes")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling BulkActionsControllerApi#bulkCreateInboxes")
    e.printStackTrace()
}

Parameters

NameTypeDescriptionNotes
countkotlin.IntNumber of inboxes to be created in bulk

Return type

kotlin.collections.List

Authorization

Configure API_KEY: ApiClient.apiKey[“x-api-key”] = "" ApiClient.apiKeyPrefix[“x-api-key”] = ""

HTTP request headers

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

bulkDeleteInboxes

bulkDeleteInboxes(ids)

Bulk Delete Inboxes

Example

// Import classes:
//import com.mailslurp.infrastructure.*
//import com.mailslurp.models.*

val apiInstance = BulkActionsControllerApi()
val ids : kotlin.collections.List<java.util.UUID> =  // kotlin.collections.List<java.util.UUID> | ids
try {
    apiInstance.bulkDeleteInboxes(ids)
} catch (e: ClientException) {
    println("4xx response calling BulkActionsControllerApi#bulkDeleteInboxes")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling BulkActionsControllerApi#bulkDeleteInboxes")
    e.printStackTrace()
}

Parameters

NameTypeDescriptionNotes
idskotlin.collections.List<java.util.UUID>ids

Return type

null (empty response body)

Authorization

Configure API_KEY: ApiClient.apiKey[“x-api-key”] = "" ApiClient.apiKeyPrefix[“x-api-key”] = ""

HTTP request headers

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

bulkSendEmails

bulkSendEmails(bulkSendEmailOptions)

Bulk Send Emails

Example

// Import classes:
//import com.mailslurp.infrastructure.*
//import com.mailslurp.models.*

val apiInstance = BulkActionsControllerApi()
val bulkSendEmailOptions : BulkSendEmailOptions =  // BulkSendEmailOptions | bulkSendEmailOptions
try {
    apiInstance.bulkSendEmails(bulkSendEmailOptions)
} catch (e: ClientException) {
    println("4xx response calling BulkActionsControllerApi#bulkSendEmails")
    e.printStackTrace()
} catch (e: ServerException) {
    println("5xx response calling BulkActionsControllerApi#bulkSendEmails")
    e.printStackTrace()
}

Parameters

NameTypeDescriptionNotes
bulkSendEmailOptionsBulkSendEmailOptionsbulkSendEmailOptions

Return type

null (empty response body)

Authorization

Configure API_KEY: ApiClient.apiKey[“x-api-key”] = "" ApiClient.apiKeyPrefix[“x-api-key”] = ""

HTTP request headers

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