---
title: "Update Data Collection via Import"
method: POST
path: "/dataCollections/{collection}/import"
tags: ["Data Collections"]
---

# Update Data Collection via Import

`POST /dataCollections/{collection}/import`

## Request

- Base URL: `https://env.unqork.io/api/1.0`
- URL: `https://env.unqork.io/api/1.0/dataCollections/{collection}/import`
- Auth: OAuth 2
  - Client credentials
  - Password
  - Token URL: `https://xyzfinancial.unqork.io/api/1.0/oauth2/access_token`
- TypeScript: <https://skmtc.dev/unqork/apis/unqork-customer-api/docs/dataCollections/:collection/import/post.ts> (a function with typed inputs; its response is checked against the schema)

Update an existing data collection via uploading an attached csv file. The CSV file generation endpoint returns a valid file object that can be imported.
### Authorization Required:
  - Data Collections Update

## Path parameters

- `collection` string, required

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: file to import

## Response `200`

Collection updated

- DataCollectionImportExecuteResponse
  - `success` boolean

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/unqork/apis/unqork-customer-api.md) - [All operations](https://skmtc.dev/unqork/apis/unqork-customer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unqork/apis/unqork-customer-api/revisions/13dad4096373?raw)
