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 |
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 |
Node-RED: Low-code programming for event-driven applications.
Copyright OpenJS Foundation and Node-RED contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
The OpenJS Foundation | Terms of Use | Privacy Policy | OpenJS Foundation Bylaws | Trademark Policy | Trademark List | Cookie Policy