---
title: "Deploy API Proxy to the Environment"
method: POST
path: "/apiops/projects/{projectName}/apiProxies/{apiProxyName}/environments/{environmentName}/"
tags: ["ApiProxy"]
---

# Deploy API Proxy to the Environment

`POST /apiops/projects/{projectName}/apiProxies/{apiProxyName}/environments/{environmentName}/`

## Request

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

Deploy API Proxy to the Environment

## Path parameters

- `projectName` string, required
- `apiProxyName` string, required
- `environmentName` string, required

## Request body

- ApiOpsDeployRequestDTO: Optional deploy/undeploy request body with history metadata
  - `description` string: Deploy history description/notes
  - `persistent` boolean: If true, this deploy history record will not be auto-deleted

## 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)
