insert_records {rairtable}R Documentation

Insert records into an Airtable table

Description

Insert rows into an Airtable table. Requires that data names and types exactly match column names and types in Airtable. Violating this assumption will return a 422 Unprocessable Entity error. Supports batch insert and parallel JSON encoding (recommended for large tables).

Usage

insert_records(
  data,
  airtable,
  typecast = FALSE,
  parallel = FALSE,
  batch_size = 10
)

Arguments

data

A dataframe containing records to insert

airtable

An airtable object

typecast

If TRUE, values will be converted to match the base if possible. Set to TRUE to add new values to a multi select field.

parallel

If TRUE, use parallel processing for encoding large tables

batch_size

Number of records per request to insert. Maximum of 10

Value

A dataframe (invisibly) of the input data, to be stored as an object or piped into further 'dplyr' functions


[Package rairtable version 0.1.2 Index]