---
title: "POST /datasets"
method: POST
path: "/datasets"
---

# POST /datasets

`POST /datasets`

## Headers

- `Content-Type` string, required

## Request body

- PostDatasets
  - `containsPersonallyIdentifiableInformation` boolean
  - `description` string, nullable
  - `metadata` object
  - `name` string, nullable
  - `retentionInDays` integer

## Response `200`

200 response

- Dataset
  - `containsPersonallyIdentifiableInformation` boolean, required
  - `createdBy` string, nullable, required
  - `createdTime` string, nullable, required
  - `datasetId` string, required
  - `description` string, nullable, required
  - `groundTruthSummary` object, required
  - `metadata` object, nullable, required
  - `name` string, nullable
  - `numberOfDocuments` integer, required
  - `retentionInDays` integer, required
  - `storageLocation` 'EU', required
  - `updatedBy` string, nullable, required
  - `updatedTime` string, nullable, required
  - `version` integer, required

## Other responses

- `400` — 400 response
- `403` — 403 response
- `404` — 404 response
- `415` — 415 response
- `500` — 500 response

## Changes

- **2022-09-29** `424af607ab69` — 1 breaking
  - the response property `metadata` became nullable for the status `200`
- **2022-02-04** `2261469a6890` — 2 info
  - added the new optional request property `metadata`
  - added the required property `metadata` to the response with the `200` status
- **2021-11-05** `9788e6bfa925` — 1 breaking, 1 warning
  - removed the required property `metadata` from the response with the `200` status
  - removed the request property `metadata`

[Change history](https://skmtc.dev/lucidtechai/apis/lucidtech-api/changes/datasets/post.md)

---

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