Import collection CSV
import_collection_csvImport rows from CSV text or an uploaded CSV/TSV/XLSX file (exactly one of csv | mediaId); header columns match field keys (unmatched ignored). mode: append (default), replace (deletes existing rows first), upsert (by an externalId or id column). ~8MB cap. Plan-gated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Site id. | |
| csv | No | CSV text with a header row. | |
| mode | No | Merge mode. Default append. | |
| slug | Yes | Collection slug. | |
| mediaId | No | An uploaded CSV/TSV/XLSX file's mediaId (the agent gets this for attached files). Use this instead of csv when the data was uploaded — never retype rows. |