Help

The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.

Can't POST Object to API

Topic Labels: API
1816 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Alberto_Mannil
5 - Automation Enthusiast
5 - Automation Enthusiast

Hello everyone, I have a very simple JSON POST to the Airtable API but am unable to Post an object into the Fields.

{
“fields”: {
“Time”: “{time}”,
“DeviceID”: “{device}”,
“Payload”: “{data}”,
“computedLocation”:{computedLocation}
}
}

In my Airtable, “Time”, “DeviceID”, “Payload” are all fields, yet {computedLocation} is an object which has the following variables: “lat”, “lng”, “radius”, “source” and "status.

My question is how do I parse an object into specific fields in Airtable?

Something like
“Lat”:"{computedLocation.lat}" isn’t working.

Airtable

2 Replies 2

Hi @Alberto_Mannil - think you just need to take the curly brackets off, like this:

Screenshot 2019-12-10 at 09.27.12

JB

Alberto_Mannil
5 - Automation Enthusiast
5 - Automation Enthusiast

Hi JB, thanks for the support, but still won’t work like this.
Without the " " the system won’t accept the code.

1

Is there a way to Post the entire “computedLocation”:{“lat”:42…,“lng”:-71…} into an Airtable Cell? I could parse using the Formulas there.

Hope I can explain myself, I’m relatively new to APIs