ApiProxy

Import an API Proxy by not overriding existing one

Imports API Proxy by adding imported suffix to name and relative path, to prevent conflicts. This method does not control if there is same API proxy exists or not.

post/apiops/projects/{projectName}/apiProxies/import/

Request

Path parameters

projectNamestring required

Query parameters

withDependenciesboolean

Optional; if true, the dependencies carried in the package are resolved against the target project: if an object with the SAME NAME exists in the target project it is bound to that object, otherwise it is imported as new. If false or omitted, the package is imported as-is (default, current behaviour). If the package carries no dependencies, this parameter has no effect.

Headers

X-Apinizer-Package-Passphrasestring

Optional; the passphrase required to decrypt the package if it is encrypted (Base64 UTF-8). Ignored if the package is not encrypted.

Request body multipart/form-data

apiProxyExportFilestring binary required
environmentMappingstring

Optional JSON: environment name in the package -> environment name in this installation (example: {"UAT":"Production"}). An empty value means that environment is deliberately not transferred. If omitted, the current behaviour is preserved: environments with the same name are matched, unmatched ones are dropped.

Response

successful operation!

status'SUCCESS' | 'FAILURE'
resultMessagestring
resultListstring[]
resultCountinteger
unresolvedReferencesstring[]

Changes

No recorded changes to this operation across all 21 revisions of this API.