Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON object in air_insert missing records property #12

Open
collinschwantes opened this issue Jul 2, 2021 · 0 comments
Open

JSON object in air_insert missing records property #12

collinschwantes opened this issue Jul 2, 2021 · 0 comments

Comments

@collinschwantes
Copy link

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

'{
  "records": [
    {
      "fields": {
        "Name": "replacement",
        "value": 100,
        "Results": "Positive",
        "Some Linked Record": ["someID1234"]
      }
    }
  ]
}'

Change to R code in air_insert

  fields <- list(fields = record_data)
  records <- list(records = list(fields))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant