Skip to main content
POST
Python

Authorizations

Meibel-API-Key
string
header
required

Body

application/json

Move documents into a datasource.

The documents are referenced by the job IDs returned when they were parsed (e.g. the job_id from parseDocument / client.documents.parse(...)), not by object-storage paths.

Either target an existing datasource with datasource_id, or create a new one by supplying new_datasource_name. Customer and project context are injected from request headers, not the body.

documents
string[]
required

Job IDs of the documents to move (e.g. the job_id returned by parseDocument)

datasource_id
string | null

Existing datasource to move documents into. Mutually exclusive with new_datasource_name.

new_datasource_name
string | null

Name for a new datasource created to hold the documents. Mutually exclusive with datasource_id.

metadata_config
MetadataConfigRequest · object | null

Optional metadata extraction config applied to a newly created datasource. Ignored when datasource_id is set.

Response

Successful Response

Result of starting an asynchronous document move workflow.

datasource_id
string
required

ID of the datasource the documents are being moved into

workflow_id
string
required

ID of the move workflow - poll for completion

documents_count
integer
required

Number of documents submitted for move