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

## Changes

- **2026-02-25** `41c04de98ec5` — 1 breaking
  - added required request body
- **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/9136e3c2cb1d/schema)
