Skip to content

flows-network/webhook-airtable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config

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)

API

Base URL

endpoints

common query:

  • action: create | update. The default is create
  • base_id: AirTable's base_id
  • table_name: AirTable's table_name

By default, base_id and table_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---|

create record

query:

  • action: create | null

Example

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

update record

query:

  • action: update
  • record_id: AirTable's record_id

Example

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •