Deploy API Proxy Group
Overview
Deploys an API Proxy Group to a specific environment. All API Proxies in the group are deployed together.
Endpoint
POST /apiops/projects/{projectName}/apiProxyGroups/{apiProxyGroupName}/environments/{environmentName}/
Authentication
Requires a Personal API Access Token.
Header
Authorization: Bearer YOUR_TOKEN
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| apiProxyGroupName | string | Yes | API Proxy Group name |
| environmentName | string | Yes | Environment name to deploy to |
Request Body
None.
Response
Success Response (200 OK)
{
"success": true,
"deploymentResult": {
"success": true,
"message": "Deployment completed successfully",
"environmentResults": [
{
"environmentName": "production",
"success": true,
"message": "Deployed successfully"
}
]
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates if the request was successful |
| deploymentResult | object | Deployment result. See Deployment Result Object |
Deployment Result Object
| Field | Type | Description |
|---|---|---|
| success | boolean | Overall deployment success status |
| message | string | Deployment message |
| environmentResults | array[object] | Results per environment |
Environment Result Object
| Field | Type | Description |
|---|---|---|
| environmentName | string | Environment name |
| success | boolean | Deployment success status for this environment |
| message | string | Deployment message for this environment |
Error Response (400 Bad Request)
{
"error": "bad_request",
"error_description": "API Proxy Group (PaymentAPIGroup) is not found or user does not have privilege to access it!"
}
or
{
"error": "bad_request",
"error_description": "Environment (production) is not found or user does not have privilege to access it!"
}
cURL Example
curl -X POST \
"https://demo.apinizer.com/apiops/projects/MyProject/apiProxyGroups/PaymentAPIGroup/environments/production/" \
-H "Authorization: Bearer YOUR_TOKEN"
Notes and Warnings
- Group Deployment:
- All API Proxies in the group are deployed together
- Group-level settings (CORS, cache, etc.) are also deployed
- Environment Must Exist:
- Environment must exist and be accessible
- Permissions:
- Requires
ROLE_MANAGE_PROXY_GROUPSpermission - Requires
ROLE_DEPLOY_UNDEPLOY_PROXIESpermission - User must have access to the project and environment
- Requires
Related Documentation
- Undeploy API Proxy Group - Undeploy group from environment
- List Environments - List environments for group