Endpoint
Authentication
Requires a Personal API Access Token.Header
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| apiProxyName | string | Yes | API Proxy name (must exist) |
| environmentName | string | Yes | Environment name (must exist) |
Query Parameters
NoneRequest Body
This endpoint does not require a request body.Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates if the request was successful |
| deploymentResult | object | Undeployment result |
| deploymentResult.success | boolean | Overall undeployment success |
| deploymentResult.deploymentResults | array | Individual environment undeployment results |
| deploymentResult.deploymentResults[].environmentName | string | Environment name |
| deploymentResult.deploymentResults[].success | boolean | Undeployment success for this environment |
| deploymentResult.deploymentResults[].message | string | Undeployment message |
Error Response (400 Bad Request)
Common Causes
- API Proxy name does not exist
- Environment name does not exist
- User does not have access to the environment
- API proxy is not deployed to the environment
- Undeployment failed (check deploymentResult for details)
Error Response (401 Unauthorized)
Error Response (404 Not Found)
cURL Example
Full JSON Body Example
This endpoint does not require a request body.Notes and Warnings
- API Proxy Must Exist: The API proxy must exist before undeployment
- Environment Access: User must have access to the target environment
Permissions
User must haveAPI_MANAGEMENT + DEPLOY_UNDEPLOY permission in the project.
- Undeployment Status: Check the
deploymentResultin the response to verify undeployment success - Deployment History: Undeployment history is automatically recorded
- Redeploy Required Flag: After undeployment, the
redeployRequiredflag is set tofalse
Related Documentation
- Deploy API Proxy - Deploy API proxy to environment
- List API Proxies - List all API proxies

