---
title: "Import metadata into an existing project"
method: POST
path: "/import_metadata/{id}"
tags: ["Microdata"]
---

# Import metadata into an existing project

`POST /import_metadata/{id}`

Import JSON or DDI/XML into an existing project. For microdata DDI, `options` is a comma-separated list of sections to apply. When `variable_groups` is included, the project's group tree is replaced from the DDI (VID membership is mapped to UIDs after variables are imported). JSON import maps `variable_groups` when the key is present (interchange rows or a nested tree).

## Path parameters

- `id` integer, required

## Response `200`

Import completed

## Other responses

- `400` — Bad request

## Changes

- **2026-08-13** `e176bc3938ca` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/worldbank/apis/metadata-editor-api/changes/import_metadata/:id/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.dev/worldbank/apis/metadata-editor-api/revisions/629dd4bfe928?raw)
