---
title: "Export Datamart"
method: POST
path: "/datamart.export/{fcTypedIdOrSourceName}"
tags: ["Data Manager"]
---

# Export Datamart

`POST /datamart.export/{fcTypedIdOrSourceName}`

Exports the specified Datamart source. Typically used in an integration scenario (IM) for a given customer. The request’s body can contain a data block with a regular filter criteria definition (as, for example, used in the JSON API fetch commands), to filter the output  rows.<p>
If the Analytics database for the parition is hosted in AWS, the export file(s) will be transferred to the corresponding S3 bucket, ready for retrieval using the `datamart.fetchexportfile` (Get a DM Export File) endpoint.
Otherwise the files are put in the local file system of the node that handles the request:

default path: `server/temp/<node>/export/<partition>/`

If needed, a different, absolute path can be set using an instance parameter:

`datamart.database.export.path`

Data is exported in the CSV format, and is always gzip-compressed. Character encoding is always UTF-8.  There is no client side encryption.

## Query parameters

- `suffix` string
- `maxRows` string

## Request body

- object
  - `data` object
    - `criteria` object[]
      - `operator` string
      - `fieldName` string
      - `value` string
    - `operator` string

## Response `200`

OK

- object
  - `response` object
    - `node` string
    - `data` object[]
      - `actionUUID` object[] — Use this in the `datamart.getactionstatus/{actionUUID}` endpoint to retrieve a file path of the exported file.
    - `status` number

---

[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)
