Ana içeriğe atla

Endpoint

Authentication

Requires a Personal API Access Token.

Request

Headers

Path Parameters

Form Data

Metadata Object

The metadata 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

Routing Object

EnumRoutingAlgorithm (routing.algorithm)

  • ROUND_ROBIN - Round-robin load balancing
  • WEIGHTED_ROUND_ROBIN - Weighted round-robin load balancing
  • LEAST_CONNECTIONS - Least connections load balancing
  • RANDOM - Random selection
  • IP_HASH - IP hash-based routing
  • URL_HASH - URL hash-based routing

Routing Address Object

EnumSoapApiPortType (soapType)

  • SOAP11 - SOAP 1.1
  • SOAP12 - SOAP 1.2

Notes

  • File must be a valid ZIP archive
  • File must end with .zip extension (case-insensitive)
  • ZIP file must contain a valid API Proxy export JSON file
  • If deploy=true, requires API_MANAGEMENT + DEPLOY_UNDEPLOY permission
  • Routing configuration is optional and can be set later
  • Maintenance mode can be enabled/disabled during import

Response

Success Response (200 OK)

Response Fields

Deployment Result Object

Environment Result Object

Success Response (200 OK) - Without Deployment

Error Response (400 Bad Request)

or
or
or

Common Causes

  • Empty projectName or apiProxyName
  • Empty or missing file
  • File is not a ZIP archive
  • File does not have .zip extension
  • 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_IMPORT permission in the project
  • Alternatively, user can have project admin role
  • If deploy=true is set, user must also have API_MANAGEMENT + DEPLOY_UNDEPLOY permission

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
  • 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 .zip extension (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_IMPORT permission
  • Import Content:
    • Import includes all API Proxy configurations
    • Includes all associated policies
    • Includes routing, cache, CORS, and other settings

Permissions

User must have API_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 deploymentResult for deployment status
    • Each environment deployment result is included separately