Add a flow to the active configuration. A flow is represented as a tab within the editor.
Requires permission: flows.write
Header | Value |
---|---|
Authorization |
Bearer [token] - if authentication is enabled |
Content-type |
application/json |
The request body must be a single flow configuration object.
The configuration object must, at a minimum, include the nodes
property.
The runtime will assign a new id for the flow. If the provided flow configuration
object includes an id
field it will be replaced and the z
property of all
nodes updated to match.
All of the nodes in the flow must have unique id
properties. The request will
rejected if any of the id
s are already in use.
Status Code | Reason | Response |
---|---|---|
204 |
Success | none |
400 |
Bad request | An Error response |
401 |
Not authorized | none |
Returns the id
of the flow.
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