putOutboundRequestBatch method

Future<PutOutboundRequestBatchResponse> putOutboundRequestBatch({
  1. required String id,
  2. required List<OutboundRequest> outboundRequests,
})

Creates outbound requests for the specified campaign Amazon Connect account. This API is idempotent.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw InvalidCampaignStateException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Implementation

Future<PutOutboundRequestBatchResponse> putOutboundRequestBatch({
  required String id,
  required List<OutboundRequest> outboundRequests,
}) async {
  final $payload = <String, dynamic>{
    'outboundRequests': outboundRequests,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/v2/campaigns/${Uri.encodeComponent(id)}/outbound-requests',
    exceptionFnMap: _exceptionFns,
  );
  return PutOutboundRequestBatchResponse.fromJson(response);
}