Any advice on getting a PATCH request through PHP to work? I’ve tried editing just about every line of the following code (API key, base key, and row ID omitted). PHP doesn’t give any errors, but the ID won’t update.
This was very helpful, thanks so much for the debugging tips! I’m pretty new to PHP. Through an echo, I found the problem: the response string is returning error “INVALID_REQUEST_MISSING_FIELDS, could not find field “fields” in the request body”. Odd, but a good clue to go off of.
It sounds like Airtable does not like how you have formed the request body.
Double check with the REST API documentation on how to form your request body. Note that the request body (and the endpoint) varies slightly depending on if you are updating a single record versus a list of records. For example, it looks like with a list, you need to include a “records” level in the body.