Was this helpful?

 

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 Auth

 

This 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')

 

Add new comment

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.