---
title: "POST /models/{modelId}/dataBundles"
method: POST
path: "/models/{modelId}/dataBundles"
---

# POST /models/{modelId}/dataBundles

`POST /models/{modelId}/dataBundles`

## Path parameters

- `modelId` string, required

## Headers

- `Content-Type` string, required

## Request body

- PostDataBundles
  - `datasetIds` string[]
  - `description` string, nullable
  - `name` string, nullable

## Response `200`

200 response

- DataBundle
  - `createdBy` string, nullable, required
  - `createdTime` string, nullable, required
  - `dataBundleId` string, required
  - `datasets` object[], required
    - `containsPersonallyIdentifiableInformation` boolean, required
    - `createdBy` string, nullable
    - `createdTime` string, nullable
    - `datasetId` string, required
    - `description` string, nullable, required
    - `groundTruthSummary` object
    - `metadata` object, nullable
    - `name` string, nullable
    - `numberOfDocuments` integer, required
    - `retentionInDays` integer, required
    - `storageLocation` 'EU', required
    - `updatedBy` string, nullable
    - `updatedTime` string, nullable
    - `version` integer, required
  - `description` string, nullable, required
  - `modelId` string, required
  - `name` string, nullable, required
  - `retentionInDays` integer
  - `status` 'running' | 'succeeded' | 'failed', required
  - `summary` object, nullable, required
  - `updatedBy` string, nullable, required
  - `updatedTime` string, nullable, required

## Other responses

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

## Changes

- **2023-02-14** `1cd1234c5271` — 1 info
  - the `modelId` response's property pattern was changed from `^las:model:[a-f0-9]{32}$` to `^las:model:[a-z0-9-_]+$` for the status `200`
- **2022-09-29** `424af607ab69` — 2 breaking
  - the response property `datasets/items/metadata` became nullable for the status `200`
  - the response property `summary` became nullable for the status `200`
- **2022-09-13** `b8d771f64c04` — 1 info
  - added the optional property `retentionInDays` to the response with the `200` status
- **2022-02-04** `2261469a6890` — 1 info
  - added the optional property `datasets/items/metadata` to the response with the `200` status
- **2021-12-10** `c3dbcad72582` — 2 warning, 2 info
  - added the new `running` enum value to the `status` response property for the response status `200`
  - added the new `succeeded` enum value to the `status` response property for the response status `200`
  - removed the `processing` enum value from the `status` response property for the response status `200`
  - removed the `ready` enum value from the `status` response property for the response status `200`

[Full history](https://skmtc.dev/lucidtechai/apis/lucidtech-api/changes/models/:modelId/dataBundles/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)
