File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import (
1010 "net/url"
1111)
1212
13+ type PerformUpsert struct {
14+ FieldsToMergeOn []string `json:"fieldsToMergeOn"`
15+ }
16+
1317// Records base type of airtable records.
1418type Records struct {
1519 Records []* Record `json:"records"`
@@ -20,6 +24,10 @@ type Records struct {
2024 // Automatic conversion is disabled by default to ensure data integrity,
2125 // but it may be helpful for integrating with 3rd party data sources.
2226 Typecast bool `json:"typecast,omitempty"`
27+ // fieldsToMergeOn will be used as an external ID to match records for updates.
28+ // For records where no match is found, a new Airtable record will be created.
29+ // https://airtable.com/developers/web/api/update-multiple-records#request-performupsert
30+ PerformUpsert * PerformUpsert `json:"performUpsert,omitempty"`
2331}
2432
2533// Table represents table object.
You can’t perform that action at this time.
0 commit comments