putDialRequestBatch method
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);
}