PUT /nodes/:module/:set

Enable/Disable a node set

Requires permission: nodes.write

Headers

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

Arguments

Path Component Description
module The name of the module
set The name of the set

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
}

Response

Status Code Reason Response
200 Success A Node Set object. See example response body
400 Bad request An Error response
401 Not authorized none
404 Not found none
{
  "id": "node-red-node-suncalc/suncalc",
  "name": "suncalc",
  "types": [
    "sunrise"
  ],
  "enabled": false,
  "module": "node-red-node-suncalc"
}