Skip to Content
dropshelf
MCPToolsData

import_collection

Merge up to 1000 documents into a collection in one transaction: each needs an id; one that exists is replaced whole, one that does not is created.

Dry-run first with dryRun. A document whose rev no longer matches is a conflict and nothing is written, unless force. For more than 1000 documents call it several times, each call atomic on its own. Owner, editor or admin; an editor's new documents are theirs. get_platform_guide with section outside has the recipe for moving a collection to a new shape.

Changes data · Destructive · Idempotent

Needs platform.db.enabled on the instance.

Input

NameTypeRequiredDescription
collectionstringyesthe collection
documentsarray of object, nullableyesthe documents, each as list_documents answers it or new; at most 1000 and 1 MB
dryRunbooleannoanswer what the import would do and write nothing
forcebooleannooverwrite documents that changed since you read them
slugstringyesthe drop's name, the first label of its address

Generated from dropshelf core at 6a548b2, 26 Nov 2026.

On this page