PricingBlog

Airtable API - create record

  • ilanb.-1189172268362907738

    ilanb

    2 years ago

    hi, I manage to pull data from Airtable, but cannot create POST call to create record on Airtable. Whatever i put in the body gets the same error message, even if it works on Postman/Reqbin. the content-type is set correctly. I always get the "INVALID_REQUEST_BODY" error.

    i put in the body

    {
    "records": [
    {
    "fields": {
    "Body": "i am good",
    "correct answer": [
    "recsay4sbPLXgcwq0"
    ],
    "answers": [
    "recdzjMNVcnCZdjcb",
    "recsay4sbPLXgcwq0"
    ],
    "game": [
    "recsSvP4KzKAtyXg7",
    "rectndmb1gM4RSUn1"
    ]
    }
    },
    {
    "fields": {
    "Body": "יונתן"
    }
    }
    ]
    }