You are viewing the Apigee Management API reference documentation. For the main product docs, and to search all docs, go to

Manage Node Packaged Modules

Resource Summary


Content Type



Node.js Management,



Manage Node Packaged Modules

Runs a specified npm command for an API proxy deployed on Apigee Edge. When you call this API, it is equivalent to executing an npm command in the resources/node directory of the API proxy.

Valid npm commands that you can execute with this API are:

  • install
  • update 
  • outdated 
  • dedupe 
  • prune 
  • verbose (directs npm to produce more output)
  • ls (default if no query param is specified)

Usage: Specify the body of this API like this: "command={npm-command}". For example: command=install. The command is designed to install known dependencies for the API's package directory (resources/node).

Do not try to specify an arbitrary published Node.js package name with this API. For example, something like this will fail: command=install async.

With the exception of ls and outdated, all of these commands replace and any other ZIP file in resources/node with the prefix node_modules with a new set of files that contains the updated dependencies. 

For details about these individual npm commands, see

When you're installing modules that are used from JavaScript within a proxy, you must deploy (or re-deploy) the proxy after the modules are installed. Otherwise, JavaScript code in the proxy might not be able to find required modules.
By default, this API does not install dependencies in package.json that are listed as "devDependencies". (Node.js module authors use "devDependencies" to denote modules that are required for testing and development but not to actually run the module.) You can override the default behavior by passing the parameter production=false. For example:

curl http://host:port/v1/o/ORG/apis/API/revisions/REV/npm -d 'command=install&production=false'

Example 1:


Returns a list of Node.js dependencies. 

Example 2:


Installs all dependencies for the resources/node directory.


Resource URL /organizations/{org_name}/apis/{api_name}/revisions/{revision_num}/npm

Query Parameters

Name Values Description

If true, the output will include additional information from npm on which API calls were made to the registry.

Header Parameters

Name Values Description

Specify as application/x-www-form-urlencoded.

Request Body

org_name Mention the organization name true

api_name Mention the API proxy true

revision_num Mention the API proxy revision number true

HTTP Basic

OAuth 2.0



Make a request and see the response.

Make a request and see the response.

Make a request and see the response.


Help or comments?

  • If something's not working: Ask the Apigee Community or see Apigee Support.
  • If something's wrong with the docs: Click the "Send Feedback" button.
    (Incorrect? Unclear? Broken link? Typo?)