Airtable api to upload data

HI!! To get data from airtable (filtering and sorting data) I recently learn to use AIRTABLE API without api-keys.

Now I need to upload/modify/erase data to airtable table. But I don't understand how to do it after watching API-HELP from airtable.

Someone can to guide me??

Thankssssss!!!!!!!!!!!1

Perhaps this ?

1 Like

Thanksss, but I was thinking to use Airtable using API with WEB component. :thinking:

Then see here to convert curl commands to blocks

You may still have more work to do but it gives you an idea....

1 Like

yes, Thanks. :ok_hand:

where I put the data to store??

Use a POSTText block, and put your data into a dictionary format, that matches what you show above.

Hello,

I'm trying to get data... but I am doing something bad.... :frowning_face:

I'm using this blocks:

This is the response content/code:

I get 200 code: conecctión is ok, but I don't get nothing.

Do It Result: from frist Make Dictionary block

{"records":
["fields:",{
"IdPedido":0,
"IdCliente":0,
"EstadoPedido":0,
"ListaPedido":"38.85",
"ComentarioPedido":"comentarios n",
"FechaPedido":"05/15/2023 16:31",
"PedPagado":0,
"PVPPedido":"Efectivo",
"FormaPago":100,
"PlayerIdPedido":0,
"NombreCtePedido":"",
"TlfClientePedido":"",
"DireccCtePedido":""
}
]
}

Any idea??

Thansssss!!!!!

This is the dictionary format for an example record

{
"records": [
{
"fields": 
{

"field1":"one",
"field2":"two",
"field3":3,
"field4":false

}
}

]
}

I believe you are missing a set of curly brackets (marked with XX)

{
"records": [
XX
"fields:",{

"IdPedido":0,
"IdCliente":0,
"EstadoPedido":0,
"ListaPedido":"38.85",
"ComentarioPedido":"comentarios n",
"FechaPedido":"05/15/2023 16:31",
"PedPagado":0,
"PVPPedido":"Efectivo",
"FormaPago":100,
"PlayerIdPedido":0,
"NombreCtePedido":"",
"TlfClientePedido":"",
"DireccCtePedido":""
}

XX
]
}
1 Like

Hi again....

I'm trying and trying but something I am doing wrong...

this is the DO IT result from dictionary: It's look OK.

But, how you can see, the Response CODE = 200, but RESPONSE CONTENT= [NO RECORD]

What I am doing wrong????? :sob:

You are trying to send a POST and a GET request at the same time... what does the API expect? POST or GET?

Edit: it looks like you are trying to upload data? Remove the Get block...

Taifun

1 Like

POST, I just want to post. Create a new record in Airtable. I mistakenly thought that the last block activated everything. I'm delete the GET block. I Will try again... Thankx!!

Finally I got to upload data to Airtable with this block:

POST or GET?

and using only POST block... :face_with_hand_over_mouth:

And (for other noob like me) to UPDATE records exactly same but using PATCHTEXT bock and you need to indicate record ID to update.

As always, thanks @Taifun @TIMAI2 for your tireless help!!! :raised_hands: :clap: :clap: :clap: :clap: :love_you_gesture:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.