Transfer between provider folder and vault
One-shot import (provider folder → vault), export (vault → provider folder), or both. Direction both creates paired import/export links and defaults export to a CaseMark Output subfolder. Upserts links by (connection_id, direction, remote, vault_id, selection): first call backfills, later calls move only new/changed files via the ledger. Poll GET /links/ → active_run for progress.
Headers
Body
Export only part of the vault (direction export only; 400 selection_requires_export otherwise). Provide object_ids, folder, or both (their intersection). The selection is part of link identity: each distinct selection to the same destination is its own link, and repeating a selection re-runs that link. Exported objects still exclude files still processing and connector-imported or fetched copies. Destination paths: with folder, paths are relative to that folder, so its contents land directly in remote; with object_ids only, each object keeps its full vault path. Omit to export the whole vault.

