PUT /nodes/:module

Enable/Disable a node module

Requires permission: nodes.write


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


Path Component Description
module The name of the module

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

Field Description
enabled true or false - whether to enable or disable the module
  "enabled": true


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"