R/create_record.R

#' Create a record to Airtalbe 
#'
#' \code{create_record} creates an Airtable record remotely by issuing POST request to the table endpoint
#'
#' @param air_options A list
#' @param table A length-one character vector
#' @param fields A list
#' @return A request object

create_record <- function(air_options, table, fields) {
  req <- dispatch_request(
    air_options,
    table,
    fields = fields, 
    method = "post"
  ) 
  airtable_check(req)
  req
} 
jsng/AirtableR documentation built on May 20, 2019, 2:09 a.m.