---
title: "Import registry data"
method: POST
path: "/admin/import"
tags: ["Admin"]
---

# Import registry data

`POST /admin/import`

## Request

- The document declares no server URL.
- Auth: none declared

Imports registry data that was previously exported using the `/admin/export` operation.

## Headers

- `X-Registry-Preserve-GlobalId` boolean
- `X-Registry-Preserve-ContentId` boolean

## Request body `application/zip`

- string, binary

## Response `201`

Indicates that the import was successful.

## Other responses

- `401`: Common response for all operations that can return a `401` error indicating authentication is required.
- `403`: Common response for all operations that can return a `403` error indicating the user is authenticated but not authorized.
- `500`: Common response for all operations that can fail with an unexpected server error.

## Changes

> 65 revisions in range; 1 not diffed.

- **2022-03-04** (v2) `dbd4a1f26836`: 2 info
  - added the new optional `header` request parameter `X-Registry-Preserve-ContentId`
  - added the new optional `header` request parameter `X-Registry-Preserve-GlobalId`
- **2021-04-07** (v2) `5ab063766048`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v2/changes/admin/import/post.md)

---

[API](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v2.md) - [All operations](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v2/revisions/8c48f413fa1f?raw)
