Help

Parabola to Airtable returns error 422

Topic Labels: API
991 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Daniela_Hecht
6 - Interface Innovator
6 - Interface Innovator

Hello everyone and thank you for being such a helpful community!
I’m trying to get Facebook Ads data to Airtable using Parabola.io, all new records, no links.
I have this body:
{
“records”: [
{
“fields”: {
“Campaign Name”:"{Campaign Name}",
“Ad Name”:"{Ad Name}",
“Fecha”:"{Reporting Ends}",
“Impressions”:"{Impressions}",
“Amount Spent”:"{Amount Spent}",
“Clicks (All)”:"{Clicks (All)}",
“Purchases”:"{Purchases}",
“Website Leads”:"{Website Leads}"
},
“typecast”:true
} ]
}
Using POST and Content-Type: application/json in header, but I get:
{
“error”: {
“message”: “Invalid request: parameter validation failed. Check your request data.”,
“type”: “INVALID_REQUEST_UNKNOWN”
}
}
Sent request is:
{
“data”: {
“records”: [
{
“fields”: {
“Ad Name”: “Ad 2”,
“Amount Spent”: “1379”,
“Campaign Name”: “ADC | jul. 20 | ADC | DCTO | RMKT”,
“Clicks (All)”: “18”,
“Fecha”: “2020-07-29”,
“Impressions”: “838”,
“Purchases”: “0”,
“Website Leads”: “0”
},
“typecast”: true
}
]
},
“headers”: {
“Authorization”: “Bearer keyxxxx”,
“Content-Type”: “application/json”
},
“method”: “POST”,
“url”: “https://api.airtable.com/v0/appxxxxx/Resultados%20FB
}

I am a newb when it comes to code, but trying to learn, and I already succeeded passing data from Parabola to a different base, but this time I can’t fix it, so please, can anyone help?

0 Replies 0