---
title: "Bulk import models."
method: POST
path: "/domains/{domainId}/schemas/import"
tags: ["Domains"]
---

# Bulk import models.

`POST /domains/{domainId}/schemas/import`

## Request

- Base URL: `http://metadata.openintegrationhub.com/api/v1`
- URL: `http://metadata.openintegrationhub.com/api/v1/domains/{domainId}/schemas/import`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/openintegrationhub/apis/oih-metadata-service-rest-api/docs/domains/:domainId/schemas/import/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint is used to upload multiple new models for a given domain. Accepts zip or tgz archive format.

## Path parameters

- `domainId` string, required

## Request body `multipart/form-data`

- object
  - `archive` string, binary

## Response `200`

successful operation

## Changes

- **2019-07-08** `f3d6b449bc4f`: 1 info
  - the endpoint scheme security `BearerAuth` was added to the API
- **2019-07-08** `1746e9d51ff0`: 1 info
  - the endpoint scheme security `BearerAuth` was removed from the API
- **2019-07-05** `3b62c5b2416c`: 1 info
  - the endpoint scheme security `BearerAuth` was added to the API
- **2019-07-03** `160a214f73fc`: 4 breaking, 2 info
  - request body became required
  - removed the media type `application/json` from the request body
  - removed the media type `application/xml` from the request body
  - removed the success response with the status `202`
  - …2 more
- **2019-06-12** `1814246009bb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openintegrationhub/apis/oih-metadata-service-rest-api/changes/domains/:domainId/schemas/import/post.md)

---

[API](https://skmtc.dev/openintegrationhub/apis/oih-metadata-service-rest-api.md) - [All operations](https://skmtc.dev/openintegrationhub/apis/oih-metadata-service-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openintegrationhub/apis/oih-metadata-service-rest-api/revisions/834571f85ba3?raw)
