---
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 — Schema for importing JSON data into a DataSet
  - `uniqueKeys` string[] — A name of the unique column
  - `truncate` boolean — Flag True or False, whether to truncate existing data on import
  - `rows` object[] — An array of objects with pairs: ColumnName:Value

## Response `200`

successful operation

---

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