---
title: "Import item documents from data sources (folder-mapping filtered)"
method: POST
path: "/datasources/import/items"
tags: ["datasources"]
---

# Import item documents from data sources (folder-mapping filtered)

`POST /datasources/import/items`

Imports item documents from the data sources bucket, keeping only files that match the business folder mapping. Creates a re-runnable import job.

## Request body

- ModelsDataSourceImportItemsRequest
  - `business_node_id` string
  - `keys` string[]
  - `name` string
  - `pipeline_version` string — PipelineVersion selects the item-handling flow. Empty (the default) is v1; v2 callers send "v2" to opt into folder-mapping filtering + folder part number + enrich-or-create. The backend requires a configured import folder mapping for v2 and rejects the import otherwise.
  - `replace_existing` boolean

## Response `200`

OK

- ModelsDataSourcesImportResponse
  - `files_queued` integer
  - `files_skipped` integer
  - `import_id` string
  - `message` string
  - `supplier_imports` ModelsSupplierImportInfo[] — Supplier catalogs detected and routed
    - `classification_system` string
    - `files_detected` integer
    - `media_files_detected` integer
    - `supplier_name` string
  - `unsupported_examples` string[] — First few unsupported filenames
  - `unsupported_files` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/resourcly/apis/resourcly-api.md) · [All operations](https://skmtc.net/resourcly/apis/resourcly-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/resourcly/resourcly-api/revisions/7f97d8cd0f1e/schema)
