Interface BatchService

    • Constructor Detail

    • Method Detail

      • create

         abstract BetaMessageBatch create(BetaMessageBatchCreateParams params, RequestOptions requestOptions)

        Send a batch of Message creation requests.

        The Message Batches API can be used to process multiple Messages API requests at once. Once a Message Batch is created, it begins processing immediately. Batches can take up to 24 hours to complete.

      • create

         abstract BetaMessageBatch create(BetaMessageBatchCreateParams params)

        Send a batch of Message creation requests.

        The Message Batches API can be used to process multiple Messages API requests at once. Once a Message Batch is created, it begins processing immediately. Batches can take up to 24 hours to complete.

      • cancel

         abstract BetaMessageBatch cancel(BetaMessageBatchCancelParams params, RequestOptions requestOptions)

        Batches may be canceled any time before processing ends. Once cancellation is initiated, the batch enters a canceling state, at which time the system may complete any in-progress, non-interruptible requests before finalizing cancellation.

        The number of canceled requests is specified in request_counts. To determine which requests were canceled, check the individual results within the batch. Note that cancellation may not result in any canceled requests if they were non-interruptible.

      • cancel

         abstract BetaMessageBatch cancel(BetaMessageBatchCancelParams params)

        Batches may be canceled any time before processing ends. Once cancellation is initiated, the batch enters a canceling state, at which time the system may complete any in-progress, non-interruptible requests before finalizing cancellation.

        The number of canceled requests is specified in request_counts. To determine which requests were canceled, check the individual results within the batch. Note that cancellation may not result in any canceled requests if they were non-interruptible.