prepare_import
Prepare a batch import of up to 100 records into one existing collection, checking duplicate titles and optional links, returning a preview and decision before writing.
Instructions
Prepare creating up to 100 records in ONE existing collection, with optional links, in two calls instead of three per record. No per-title resolution is needed: the server checks every row title against every title and alias in the collection (archives included) and against the other rows, with the same similarity rules as resolve_record. rows: [{key, title, data}] where key is your own unique label for the row. links: [{source, relationship_type, target}]; each endpoint is {"row": key} or {"record_id": id}. Existing record endpoints need resolution tickets in review_ids (clarification applies to those). Returns per-row status clean / possible_duplicate / batch_duplicate with candidates, the keys in needs_decision, a preview and action_id. Nothing is written. Very large collections limit rows per call; the error says how many.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| links | No | ||
| review_ids | No | ||
| clarification | No | ||
| collection_id | Yes | ||
| decision_reason | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||