Skip to main content
POST
Move multiple documents to a collection

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <token>. The token is either a user token / OAuth access token, or a service-account API key (cfk_...). A key is valid on every endpoint and acts as its service account, an organization member with per-store permissions. Refused keys answer 403 with Invalid API key., API key revoked., API key expired. or API key disabled..

Path Parameters

project_id
string<uuid>
required

UUID of the project

Body

application/json
collection_id
string<uuid> | null
required

The target collection's id (must belong to this project), or null to move the documents to "Default".

document_ids
string<uuid>[]

Ids of the documents to move (max 200).

Maximum array length: 200
filter
object

Selects the documents of a bulk move/archive by the get-without-file filters (combined with AND). At least one criterion besides status is required, unless status is failed.

Response

Move result counts and any extraction flows whose cache was invalidated.

moved
integer

Number of documents moved.

skipped
integer

Requested ids that were not active documents in this project.

extraction_flows_to_rerun
object[]