Endpoint
Authentication
Requires a Personal API Access Token.Header
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer | Yes |
| Content-Type | multipart/form-data | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name where the API Proxy will be imported |
| apiProxyName | string | Yes | API Proxy name (will override existing API Proxy with this name) |
Form Data
| Parameter | Type | Required | Description |
|---|---|---|---|
| metadata | string (JSON) | Yes | Metadata for API Proxy creation/update. See Metadata Object |
| apiProxyExportFile | file | Yes | ZIP file containing the API Proxy export. Must have .zip extension |
Metadata Object
Themetadata parameter is a JSON string containing optional configuration for the import process.
Full JSON Metadata Example - Basic Import
Full JSON Metadata Example - Import with Deployment
Full JSON Metadata Example - Import with Routing
Metadata Object Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| deploy | boolean | No | false | Deploy API Proxy after import |
| deployTargetEnvironmentNameList | array[string] | No | null | List of environment names to deploy to (if deploy=true) |
| routing | object | No | null | Routing configuration. See Routing Object |
| maintenanceMode | boolean | No | null | Enable/disable maintenance mode |
Routing Object
| Field | Type | Required | Description |
|---|---|---|---|
| algorithm | string | No | Routing algorithm. See EnumRoutingAlgorithm |
| addressList | array[object] | No | List of routing addresses. See Routing Address Object |
EnumRoutingAlgorithm (routing.algorithm)
ROUND_ROBIN- Round-robin load balancingWEIGHTED_ROUND_ROBIN- Weighted round-robin load balancingLEAST_CONNECTIONS- Least connections load balancingRANDOM- Random selectionIP_HASH- IP hash-based routingURL_HASH- URL hash-based routing
Routing Address Object
| Field | Type | Required | Description |
|---|---|---|---|
| address | string | Yes | Backend address URL |
| weight | integer | No | Weight for weighted algorithms (default: 1) |
| soapType | string | No | SOAP version for SOAP APIs. See EnumSoapApiPortType |
EnumSoapApiPortType (soapType)
SOAP11- SOAP 1.1SOAP12- SOAP 1.2
Notes
- File must be a valid ZIP archive
- File must end with
.zipextension (case-insensitive) - ZIP file must contain a valid API Proxy export JSON file
- If
deploy=true, requiresAPI_MANAGEMENT+DEPLOY_UNDEPLOYpermission - Routing configuration is optional and can be set later
- Maintenance mode can be enabled/disabled during import
Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
| status | string | Response status: SUCCESS or FAILURE |
| deploymentResult | object | Deployment result (if deploy=true). 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 |
Success Response (200 OK) - Without Deployment
Error Response (400 Bad Request)
Common Causes
- Empty
projectNameorapiProxyName - Empty or missing file
- File is not a ZIP archive
- File does not have
.zipextension - Invalid API Proxy export format
- Invalid metadata JSON format
- Deployment failed (if deploy=true)
Error Response (401 Unauthorized)
Error Response (404 Not Found)
cURL Example
Example 1: Basic Import (No Override)
Example 2: Import with Deployment
Example 3: Import with Routing Configuration
Example 4: Import with Full Configuration
Notes and Warnings
- Override Behavior:
- This endpoint overrides existing API Proxies with the same name
- Existing API Proxy configuration will be replaced
- Original API Proxy data is lost after override
Permissions
- User must have
API_MANAGEMENT+EXPORT_IMPORTpermission in the project - Alternatively, user can have project admin role
- If
deploy=trueis set, user must also haveAPI_MANAGEMENT+DEPLOY_UNDEPLOYpermission
Notes and Warnings
- Deployment:
- If
deploy=true, API Proxy will be deployed after import - Deployment targets must be specified in
deployTargetEnvironmentNameList - Deployment results are returned in the response
- If
- Routing Configuration:
- Routing can be configured during import
- Routing algorithm and addresses can be set
- Routing configuration is optional
- Maintenance Mode:
- Maintenance mode can be enabled/disabled during import
- Useful for importing API Proxies in maintenance state
- File Format:
- File must be a valid ZIP archive
- File must end with
.zipextension (case-insensitive) - ZIP file must contain valid API Proxy export JSON
- Metadata Format:
- Metadata must be valid JSON
- Metadata is passed as a form field (string)
- All metadata fields are optional
- Project Validation:
- Project must exist
- User must have access to the project
- User must have
API_MANAGEMENT+EXPORT_IMPORTpermission
- Import Content:
- Import includes all API Proxy configurations
- Includes all associated policies
- Includes routing, cache, CORS, and other settings
Permissions
User must haveAPI_MANAGEMENT + EXPORT_IMPORT permission in the project. For deployment operations (when deploy: true is set), user must also have API_MANAGEMENT + DEPLOY_UNDEPLOY permission.
- File Size:
- Large export files may take longer to import
- Ensure sufficient network bandwidth and server resources
- Validation:
- Import validates API Proxy structure
- Invalid configurations may cause import to fail
- Check error messages for validation issues
- Deployment Results:
- Deployment results are included in the response
- Check
deploymentResultfor deployment status - Each environment deployment result is included separately
Related Documentation
- Export API Proxy - Export API Proxy to ZIP file
- Import API Proxy (Without Override) - Import API Proxy without override
- Deploy API Proxy - Deploy API Proxy to environments
- Update Routing Addresses - Update routing configuration

