env:
account
: Account that binds to Airtable in the flows.network platform.base_id
: Airtable's base_id (Optional)table_name
: Airtable's table_name (Optional)
common query:
action
:create
|update
. The default iscreate
base_id
: AirTable's base_idtable_name
: AirTable's table_name
By default,
base_id
andtable_name
takes the value of the corresponding environment variable if set. If the environment variable isn't set, they are required.
common body:
A JSON file represented by serde_json::Value
. Include only the content in fields
https://airtable.com/appebI0zAKp3fe9qE/tblx8KEJuGHULAoBX/viwaLgNG4EZbE4NMo?blocks=hide
|----base_id----| |---table_name---|
query:
action
:create
| null
curl -X POST "<base url>?base_id={base_id}&table_name={table_name}" \
-H "Content-Type: application/json" \
--data '{
"Address": "333 Post St",
"Name": "Union Square",
"Visited": true
}'
See also: https://airtable.com/developers/web/api/create-records
query:
action
:update
record_id
: AirTable's record_id
curl -X POST "<base url>?base_id={base_id}&table_name={table_name}&record_id={record_id}&action={update}" \
-H "Content-Type: application/json" \
--data '{
"Address": "333 Post St",
"Name": "Union Square",
"Visited": true
}'
see also: https://airtable.com/developers/web/api/update-record