API Platform Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}
API Resource Path: /apis?action=import&name={api_name}
Uploads an API proxy from a local machine to Apigee
Verb: POST
Auth: Basic AuthThis method enables developers to upload an API proxy as a ZIP file from the local machine to the targeted Apigee organization. Once imported, the API revision must be deployed before it can be accessed at runtime.
Sample Request:$ curl -H "Content-Type: application/octet-stream" -X POST \
https://api.enterprise.apigee.com/v1/o/{org_name}/apis?"action=import&name={api_name}" -T {file_name}.zip \
-u myname:mypass
Sample Response:
{
"configurationVersion" : {
"majorVersion" : 4,
"minorVersion" : 0
},
"contextInfo" : "Revision 1 of application passthrough, in organization apiProvider",
"createdAt" : 1342365988805,
"createdBy" : "orgAdmin",
"description" : "The smallest possible app",
"lastModifiedAt" : 1342365988805,
"lastModifiedAt" : "orgAdmin",
"name" : "passthrough",
"policies" : [ ],
"proxyEndpoints" : [ "default" ],
"resources" : [ ],
"revision" : "1",
"targetEndpoints" : [ "default" ],
"targetServers" : [ ],
"type" : "Application"
}
Response Payload Elements:
| Name | Description |
|---|---|
| configurationVersion | Version of the API proxy configuration |
| contextInfo | Descriptive information generated by Apigee |
| createdAt | Unix time when the entity was generated |
| createdBy | The user name of the Apigee user who created the entity |
| lastModifiedAt | Unix time when the entity was last modified |
| lastModifiedAt | The user name of the Apigee user who last modified the entity |
| name | The name of the API |
| policies | Policies contained in the API proxy |
| proxyEndpoints | The named proxy endpoint configuration for the API (UI generated proxies are named 'default') |
| resources | Resources (scripts, XSLT files, etc.) contained in the API proxy |
| revision | The revision number of the API proxy package |
| targetEndpoints | The named target endpoint configuration for the API (UI generated targets are named 'default') |
| targetServers | Internal Apigee information |
| type | Internal Apigee information (APIs are always type 'Application') |