Creating records in Airpress via API
-
Hi there,
I am perhaps using your plugin for a different purpose than intended however looking through your code I think it can serve the purpose I want it to as well.
I am using your Airpress classes to update existing records in an Airtable base when their related records on a WordPress site are updated. This is working very well.
Now I also want to create a record in Airtable when a new record is created in WordPress (or an existing WordPress record is update that doesn’t already exist in Airtable). For example I have something similar to the following code which I think should work:
$new_post[ 'fields' ] = ['post_title' => 'test', 'post_type' = 'page']; $record = new AirpressRecord( $new_post, $collection );
However I get the following error in the debug log:
“INVALID_REQUEST_UNKNOWN”,”message”:”Invalid request: parameter validation failed. Check your request data.”Perhaps I am doing something incorrectly, do you have any examples for how to create Airtable records?
- The topic ‘Creating records in Airpress via API’ is closed to new replies.