Send Docs Feedback

SmartDocs basics

1. In the Resource URL, replace any values enclosed in "{}", such as your organization name.
2. Set the Basic Authentication credentials. These are your Edge email and password (user must be in the Org Admin role).
3. Tweak the Request Body as needed (if a body is needed).
4. Send the live request to Edge and view the response! You can also view Request data.

Import a resource file for an environment

Resource Summary

Auth Type

BASICAUTH,

Content Type

application/octet-stream

Category

Resource File,

importResourceFileUrlEnv

POST

Import a resource file for an environment

Import and create a resource file for an environment.

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/organizations/artomatic/e/{env_name}/resourcefiles?name={resourceName}&type={fileType} \
--data-binary @{fileName} \
-u email:password 

Resource URL

https://api.enterprise.apigee.com/v1 /organizations/{org_name}/environments/{env_name}/resourcefiles

    Query Parameters

  • Name
    Value
    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
    Value
    Description
  • Content-Type
    (required)
    Specify the content type as application/octet-stream.

Request Body

org_name Mention the organization name true

env_name Mention the environment name true

Basic Auth

OAuth 2

Custom Token

Reset

Make a request and see the response.

Make a request and see the response.

Working...

Help or comments?