batchCreateAttendee method

Future<BatchCreateAttendeeResponse> batchCreateAttendee({
  1. required List<CreateAttendeeRequestItem> attendees,
  2. required String meetingId,
})

Creates up to 100 attendees for an active Amazon Chime SDK meeting. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

May throw BadRequestException. May throw ForbiddenException. May throw LimitExceededException. May throw NotFoundException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottlingException. May throw UnauthorizedException. May throw UnprocessableEntityException.

Parameter attendees : The attendee information, including attendees' IDs and join tokens.

Parameter meetingId : The Amazon Chime SDK ID of the meeting to which you're adding attendees.

Implementation

Future<BatchCreateAttendeeResponse> batchCreateAttendee({
  required List<CreateAttendeeRequestItem> attendees,
  required String meetingId,
}) async {
  final $payload = <String, dynamic>{
    'Attendees': attendees,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri:
        '/meetings/${Uri.encodeComponent(meetingId)}/attendees?operation=batch-create',
    exceptionFnMap: _exceptionFns,
  );
  return BatchCreateAttendeeResponse.fromJson(response);
}