Open collinschwantes opened 3 years ago
The airtable api examples show fields for created records are stored in an array inside a records property. Slight change of the air_insert function achieves expected JSON structure.
air_insert
'{ "records": [ { "fields": { "Name": "replacement", "value": 100, "Results": "Positive", "Some Linked Record": ["someID1234"] } } ] }'
fields <- list(fields = record_data) records <- list(records = list(fields))
The airtable api examples show fields for created records are stored in an array inside a records property. Slight change of the
air_insert
function achieves expected JSON structure.Expected JSON
Change to R code in
air_insert