---
title: "Import content items."
method: POST
path: "/api/content/{app}/{schema}/import"
tags: ["Contents"]
deprecated: true
---

# Import content items.

`POST /api/content/{app}/{schema}/import`

> **Deprecated.**

You can read the generated documentation for your app at /api/content/{appName}/docs.

## Path parameters

- `app` string, required
- `schema` string, required

## Request body

- ImportContentsDto
  - `datas` ContentData[], required — The data to import.
  - `publish` boolean — True to automatically publish the content.
  - `doNotScript` boolean — True to turn off scripting for faster inserts. Default: true.
  - `optimizeValidation` boolean — True to turn off costly validation: Unique checks, asset checks and reference checks. Default: true.

## Response `200`

Contents created.

- BulkResultDto[]
  - `error` ErrorDto
    - `message` string, required — Error message.
    - `errorCode` string, nullable — The error code.
    - `traceId` string, nullable — The optional trace id.
    - `type` string, nullable — Link to the error details.
    - `details` string[], nullable — Detailed error messages.
    - `statusCode` integer, required — Status code of the http response.
  - `jobIndex` integer, required — The index of the bulk job where the result belongs to. The order can change.
  - `id` string, nullable — The ID of the entity that has been handled successfully or not.
  - `contentId` string, nullable — The ID of the entity that has been handled successfully or not.

## Other responses

- `400` — Content request not valid.
- `404` — Content references, schema or app not found.
- `500` — Operation failed.

---

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