---
title: "Upload a Bulk Data to Data Source"
method: POST
path: "/datamart.loaddata/{datasourceUniqueName}"
tags: ["Data Manager"]
---

# Upload a Bulk Data to Data Source

`POST /datamart.loaddata/{datasourceUniqueName}`

Uploads a chunk (batch) of data from a client resource to the storage reserved for a particular Data Source.<p>
The uploaded data is not immediately transfered to the Data Source database table. Instead it is held (‘buffered’) in a staging area, until an explicit **flush** command is issued (refer to the **/datamart.rundataload** endpoint, `"type": "DS_FLUSH"`), or a Datamart dependent on the Data Source data is refreshed.

## Request body

- object
  - `data` object, required
    - `header` string[], required — Specify header field names (table columns) of the record in the target Data Source.
    - `options` object — Specify options of the bulk data insertion.
      - `detectJoinFields` boolean
    - `data` array[], required — The data as a list of lists, with the inner lists representing rows, its field values appearing in the same order as specified in the `header` list.
      - unknown[]
        - unknown

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` object[]
      - `loaded` integer
      - `failed` integer
    - `status` integer

---

[API](https://skmtc.net/pricefx/apis/the-pricefx-backend-api.md) · [All operations](https://skmtc.net/pricefx/apis/the-pricefx-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pricefx/the-pricefx-backend-api/versions/0850b5d6be73/schema)
