---
title: "Import JSON"
method: POST
path: "/dataset/importjson/{dataSetId}"
tags: ["dataset"]
---

# Import JSON

`POST /dataset/importjson/{dataSetId}`

Import JSON into a DataSet

## Path parameters

- `dataSetId` integer, required

## Request body

- ImportJsonSchema
  - `uniqueKeys` string[] — A name of the unique column
  - `truncate` string[] — Flag True or False, whether to truncate existing data on import
  - `rows` object[] — An array of objects with pairs: ColumnName:Value
    - `colName` string — Import Json schema

## Response `200`

successful operation

## Changes

- **2020-02-17** `8e1275395104` — 1 breaking
  - removed the request body

[Change history](https://skmtc.dev/xibosignage/apis/xibo-api/changes/dataset/importjson/:dataSetId/post.md)

---

[API](https://skmtc.dev/xibosignage/apis/xibo-api.md) · [All operations](https://skmtc.dev/xibosignage/apis/xibo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xibosignage/xibo-api/revisions/fa8d95dfe4bb/schema)
