batchUpdateUser method

Future<BatchUpdateUserResponse> batchUpdateUser({
  1. required String accountId,
  2. required List<UpdateUserRequestItem> updateUserRequestItems,
})

Updates user details within the UpdateUserRequestItem object for up to 20 users for the specified Amazon Chime account. Currently, only LicenseType updates are supported for this action.

May throw UnauthorizedClientException. May throw NotFoundException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter accountId : The Amazon Chime account ID.

Parameter updateUserRequestItems : The request containing the user IDs and details to update.

Implementation

Future<BatchUpdateUserResponse> batchUpdateUser({
  required String accountId,
  required List<UpdateUserRequestItem> updateUserRequestItems,
}) async {
  ArgumentError.checkNotNull(accountId, 'accountId');
  ArgumentError.checkNotNull(
      updateUserRequestItems, 'updateUserRequestItems');
  final $payload = <String, dynamic>{
    'UpdateUserRequestItems': updateUserRequestItems,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/accounts/${Uri.encodeComponent(accountId)}/users',
    exceptionFnMap: _exceptionFns,
  );
  return BatchUpdateUserResponse.fromJson(response);
}