upsert_rows
Batch insert or update rows in a SeaTable table by matching on specified key columns. Updates existing rows if keys match; inserts new rows otherwise. Rejects unknown columns; use dedicated tools for links and file operations.
Instructions
Batch upsert rows by matching on one or more key columns. If a match exists, update it; otherwise insert a new row. Rejects unknown columns. Link and file/image columns cannot be set here — use link_rows/unlink_rows and upload_file instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Target table name | |
| key_columns | Yes | Columns to match on for finding existing rows | |
| rows | Yes | Array of row objects (column name -> value) |