Replace Entries
replace-entriesReplace up to 50 entries idempotently, matching by kind and title. Optionally delete scope entries missing from the batch; use deleteOrphans=false for intermediate batches in large imports.
Instructions
Max 50 entries per bulk call—split large catalogs into batches of ~50 to avoid oversized tool payloads. For full re-import: delete-entries once, then set-entries in 50-entry chunks; or replace-entries with deleteOrphans=false until the final batch (deleteOrphans=true). Idempotent sync for up to 50 entries in scope; optionally delete orphans not in this batch. Match by upsertBy (default kind+title). For large catalogs use deleteOrphans=false on intermediate batches, true only on the last batch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | Project id | |
| scope | Yes | Which existing entries participate in orphan deletion | |
| moduleName | No | Default refs.moduleName for entries without refs.moduleName | |
| upsertBy | No | Fields used to match existing entries (default kind+title) | |
| entries | Yes | Batch slice for this scope (max 50; repeat calls for larger catalogs) | |
| deleteOrphans | No | Delete scope entries missing from this batch (default true; set false until final batch) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | Yes | ||
| updated | Yes | ||
| deleted | Yes | ||
| entryIds | Yes | ||
| message | Yes |