Import documents into a collection
Owner, editor or admin. Merges JSON Lines, one document per line as exportCollection writes them, in one transaction: equal data is unchanged, a line whose rev no longer matches is a conflict unless force, a document deleted since is created again. New documents keep their author for the owner and admins and are the importer's for an editor. Nothing is written on any error, conflict or full quota; a file naming more documents than the drop can hold answers 507 before its lines are checked; otherwise a file with invalid lines answers 422 and one with conflicts 409 even when it is also over a limit, which quota then names. dryRun writes nothing and answers the same status. Every import that is not a dry run is an audit event.
Owner, editor or admin. Merges JSON Lines, one document per line as exportCollection writes them, in one transaction: equal data is unchanged, a line whose rev no longer matches is a conflict unless force, a document deleted since is created again. New documents keep their author for the owner and admins and are the importer's for an editor. Nothing is written on any error, conflict or full quota; a file naming more documents than the drop can hold answers 507 before its lines are checked; otherwise a file with invalid lines answers 422 and one with conflicts 409 even when it is also over a limit, which quota then names. dryRun writes nothing and answers the same status. Every import that is not a dry run is an audit event.
AuthorizationBearer <token>A personal access token, odp_ followed by 43 characters. Create one in the dashboard.
slug*stringThe drop.
collection*stringThe collection.
force?booleanOptional. true overwrites documents that changed since they were read.
dryRun?booleanOptional. true answers the report and writes nothing.
JSON Lines, one document per line, as exportCollection writes them. Blank lines are skipped.
body*stringapplication/x-ndjsonApplied, or a dry run that found nothing wrong.
application/json- response
after*applied*booleanWhether this import committed.
authoredByYou*integerNew documents whose line named another author and which the importer, an editor, now authors.
conflicts*array<>At most 100; conflictsTotal counts all.
conflictsTotal*integercreated*integerdryRun*booleanerrors*array<>At most 100, in line order; errorsTotal counts all.
errorsTotal*integerlimits*quota?stringWhich drop limit the file is over: docs, bytes or collections. Set on a 507, and on a 422 or 409 whose file is also over a limit.
recreated*integerDocuments a line carried a rev for that no longer existed.
replaced*integerunchanged*integercurl -X POST 'https://drop.example.com/api/v1/drops/string/db/string/import' \ -H 'Content-Type: application/x-ndjson' \ -d 'string'{ "after": { "bytes": 0, "collections": 0, "docs": 0 }, "applied": true, "authoredByYou": 0, "conflicts": [ { "id": "string", "read": 0, "stored": 0 } ], "conflictsTotal": 0, "created": 0, "dryRun": true, "errors": [ { "line": 0, "reason": "string" } ], "errorsTotal": 0, "limits": { "bytes": 0, "collections": 0, "docs": 0 }, "quota": "string", "recreated": 0, "replaced": 0, "unchanged": 0}Generated from dropshelf core at 6a548b2, 26 Nov 2026.
One file of a version GET
Owner, editor or admin. The file's bytes, always as an attachment (application/octet-stream, nosniff, Content-Security-Policy: sandbox), so the control plane never renders what a drop holds.
Like a drop PUT
Idempotent: liking twice leaves one like. Visible to everyone who can see the drop. 404 for a drop the caller may not see, the same as an unknown name. There is no body; a caller using the session cookie must still send Content-Type: application/json.