import_households
Migrate a book (WS3.5): import up to 200 households in one call, with dryRun: true validating everything and writing NOTHING — iterate until the per-row, per-field report is clean, then run for real. Two shapes: households[] of { importKey, label?, household } documents, or template + records — a declarative mapping template (docs/data-migration.md) executed deterministically over raw exported records, so YOU draft the small reviewable template and the engine does the transcription. importKey is the caller's stable id: re-runs are idempotent (already-imported keys skip and report their householdId); imports never overwrite.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Validate everything, write nothing | |
| api_key | No | Worthune API key (wk_…) | |
| records | No | Raw exported records, column → string cell | |
| template | No | Mapping template (templateVersion 0.1.0) for the records path | |
| households | No | Direct rows: { importKey, label?, household } |