Send Docs Feedback

Making management API calls from this page

  1. In the URL, replace any values enclosed in "{ }", such as your organization name.
  2. Set the Basic Authentication credentials: Edge email and password (user must be in the Org Admin role).
    If you don't have an Apigee account,
    go here.
  3. Tweak the parameters and request body as needed.
  4. Send the live request to Edge!

Import a resource file for an API

Resource Summary

Security

Content Type

application/octet-stream

Category

Resource File,

importResourceFileUrlApi

POST

Import a resource file for an API

Import and create a resource file for an API.

Paste the contents of the file in the request body.

You can also POST a file to this API by using a cURL command in the form:

curl -H "Content-type: application/octet-stream" \
-X POST https://api.enterprise.apigee.com/v1/o/{org}/apis/{api}/revisions/{rev}/resourcefiles?name={resourceName}&type={fileType} \
--data-binary @{fileName} \
-u email:password 

Resource URL

https://api.enterprise.apigee.com/v1 /organizations/{org_name}/apis/{api_name}/revisions/{revision_number}/resourcefiles

Query Parameters

Name Values Description
name
(required)

The name of the resource, including the file type extension.

type
(required)

The resource type (jsc, java, py, xsl, wsdl, xsd).

Header Parameters

Name Values Description
Content-Type
(required)

Specify the content type as application/octet-stream.

Request Body

org_name Mention the organization name true

api_name Mention the API name true

revision_number Mention the API revision number true

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Working...

Help or comments?