API Export to Airtable

Hi - I would like to add a problem to this thread I’ve been having. My GET command works great but the PUT command doesn’t seem to work. I understand Airtable required specific formatting in the body.

So here’s what I’m finally using after much testing with either formats (including the Airtable API specification):

PUT endpoint

https://api.airtable.com/v0/base_idxxx/master/record_idxxxx \

The bearer token is correctly entered.

And the body:

–data {
“fields”: {
“Created”: {“Created”},
“First Name”: {“First Name”},
“Last Name”: {“Last Name”},
“Model”: {“Model”},
“Serial”: {“Serial”},
“Ticket”: {“Ticket”},
“RS_ID”: {“RS_ID”}
}
}

And the error message thrown back is JSON not properly formed, and I should use a JSON linter to Choose a JSON linter to check the syntax. I did that. Here’s what I get back:

Error: Parse error on line 1:
–data { “fields”:
^
Expecting ‘STRING’, ‘NUMBER’, ‘NULL’, ‘TRUE’, ‘FALSE’, ‘{’, ‘[’, got ‘undefined’

Also…I tried a few different body formats that might be more Airtable friendly, but same response:

{
“fields”: {
“Created”: “{Created}”,
“First Name”: “{First Name}”,
“Last Name”: “{Last Name}”,
“Model”: “{Model}”,
“Serial”: “{Serial}”,
“Ticket”: “{Ticket}”,
“RS_ID”: “{RS_ID}”
}
}

Lastly, what I find interesting is when I began working with this I was actually getting 404 messages. Now whatever I try the standard response is JSON not properly formed.

Whatever I’m doing is wrong and your help is greatly appreciated, as always.