---
title: "Import an API Proxy by not overriding existing one"
method: POST
path: "/apiops/projects/{projectName}/apiProxies/import/"
tags: ["ApiProxy"]
---

# Import an API Proxy by not overriding existing one

`POST /apiops/projects/{projectName}/apiProxies/import/`

## Request

- Base URL: `http://167.86.118.166:32080`
- URL: `http://167.86.118.166:32080/apiops/projects/{projectName}/apiProxies/import/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apinizer/apis/apinizer-management-apis/docs/apiops/projects/:projectName/apiProxies/import/post.ts> (a function with typed inputs; its response is checked against the schema)

Imports API Proxy by adding imported suffix to name and relative path, to prevent conflicts. This method does not control if there is same API proxy exists or not.

## Path parameters

- `projectName` string, required

## Query parameters

- `withDependencies` boolean

## Headers

- `X-Apinizer-Package-Passphrase` string

## Request body `multipart/form-data`

- object
  - `apiProxyExportFile` string, binary, required
  - `environmentMapping` string: Optional JSON: environment name in the package -> environment name in this installation (example: {"UAT":"Production"}). An empty value means that environment is deliberately not transferred. If omitted, the current behaviour is preserved: environments with the same name are matched, unmatched ones are dropped.

## Response `200`

successful operation!

- ApiOpsResponseSuccess
  - `status` 'SUCCESS' | 'FAILURE'
  - `resultMessage` string
  - `resultList` string[]
  - `resultCount` integer
  - `deploymentResult` DeploymentResult
    - `envName` string
    - `podName` string
    - `podIp` string
    - `success` boolean
    - `detail` string
    - `responseTime` integer
    - `detailList` unknown[]
      - unknown
    - `firstFromApiResultList` unknown
  - `unresolvedReferences` string[]
  - `advisories` ApiOpsAdvisoryDTO[]
    - `level` string
    - `key` string
    - `params` object

## Other responses

- `401`: not authorized for this operation!
- `500`: internal error!

---

[API](https://skmtc.dev/apinizer/apis/apinizer-management-apis.md) - [All operations](https://skmtc.dev/apinizer/apis/apinizer-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/apinizer/apis/apinizer-management-apis/revisions/e083046b24cd?raw)
