---
title: "Import codelist JSON"
method: POST
path: "/codelists/import_json"
tags: ["Codelists"]
---

# Import codelist JSON

`POST /codelists/import_json`

Import one codelist from NADA-compatible JSON (body or multipart `file`). Requires `codelist:import`. Supports `dry_run` and `replace`/`overwrite` on the JSON body or query string.

## Query parameters

- `dry_run` boolean
- `replace` boolean

## Request body

- object

## Response `200`

Import result

- CodelistImportResponse
  - `status` string
  - `dry_run` boolean
  - `imported` object[]
  - `warnings` string[]

## Other responses

- `400` — Validation or import failed

## Changes

> 12 revisions in range; 1 could not be searched.

- **2026-05-24** `b93c122bc338` — 1 info
  - endpoint added
- **2026-02-23** `5bfc4d9dc1c8` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/worldbank/apis/metadata-editor-api/changes/codelists/import_json/post.md)

---

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