putDialRequestBatch method

Future<PutDialRequestBatchResponse> putDialRequestBatch({
  1. required List<DialRequest> dialRequests,
  2. required String id,
})

Creates dials 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<PutDialRequestBatchResponse> putDialRequestBatch({
  required List<DialRequest> dialRequests,
  required String id,
}) async {
  final $payload = <String, dynamic>{
    'dialRequests': dialRequests,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/campaigns/${Uri.encodeComponent(id)}/dial-requests',
    exceptionFnMap: _exceptionFns,
  );
  return PutDialRequestBatchResponse.fromJson(response);
}