POST /nodes

Install a new node module

Requires permission: nodes.write


Header Value
Authorization Bearer [token] - if authentication is enabled
Content-type application/json


The request body must be a JSON string with the following fields:

Field Description
module Either the name of the node module to install from the npm repository, or a full path to a directory containing the node module. Note: this api does not support the full range of module specifiers used by npm such as .tgz files or version qualifiers.
  "module": "node-red-node-suncalc"


Status Code Reason Response
200 Success A Node Module object. See example response body
400 Bad request An Error response
401 Not authorized none
404 Not found none
  "name": "node-red-node-suncalc",
  "version": "0.0.6",
  "nodes": [
      "id": "node-red-node-suncalc/suncalc",
      "name": "suncalc",
      "types": [
      "enabled": true,
      "loaded": true,
      "module": "node-red-node-suncalc"