Managing your flows and endpoints
After you create one or multiple flows, you can proceed with managing thm. This guide demonstrates how to view, read details, and update existing IoT Logic flows using the Navixy IoT Logic API. You'll learn how to list all your flows, examine specific flow configurations including nodes and connections, and modify flows by adding new data processing rules. The examples show practical scenarios like managing fleet vehicle data flows, adding calculated attributes for business metrics, and connecting to MQTT endpoints for external system integration.
Prerequisites
For this example, let's presume that we have already:
Created an MQTT output endpoint with ID 45678 using
/iot/logic/flow/endpoint/createCreated a flow with ID 1234 using
/iot/logic/flow/createwith the following components:A data source node (ID: 1) that captures data from devices 12345, 12346, and 12347
An attribute calculation node (ID: 2) for basic metrics
An output endpoint node (ID: 3) that sends data to the MQTT endpoint
Viewing your flows
The flow list endpoint provides a quick overview of all IoT Logic flows in your account. This is useful for getting flow IDs and titles before performing detailed operations. Each flow in the response includes its unique identifier and descriptive title, allowing you to identify which flows you want to examine or modify further.
List all flows in the user account. Returns flow IDs and titles only. Use the read endpoint to retrieve complete flow details including nodes and configuration.
Enter an API key with the "NVX: " prefix, e.g. "NVX 123456abcdefg"
Successful response to read a list of flows
Error response object
To see all your existing flows, send the request:
You will receive id and title parameters in the response:
Viewing flow details
The flow read endpoint retrieves complete configuration details for a specific flow, including all nodes, their properties, and the connections between them. This detailed view shows you the entire data processing pipeline - from data sources through transformation nodes to output endpoints. Use this when you need to understand the current flow structure before making modifications or troubleshooting data processing issues.
Retrieve complete flow configuration including all nodes, edges, and metadata. Returns the flow structure with node positions, connections, and enabled status. Use this endpoint to inspect flow architecture or retrieve configuration for duplication.
Enter an API key with the "NVX: " prefix, e.g. "NVX 123456abcdefg"
Flow ID
12Successful response to read a flow
Error response object
To see the details of a specific flow, copy the id value of the needed flow from GET /iot/logic/flow/list response. Add it in the respective field of this request:
You will receive the complete structure of the flow in the response:
Updating a flow
The flow update endpoint allows you to modify existing flows by changing node configurations, adding new processing rules, or adjusting connections. When updating a flow, you must provide the complete flow structure, including all nodes and edges, even if you're only modifying one element. This ensures data consistency and prevents accidental deletion of existing components. In this example, we're adding a new calculated attribute to convert engine temperature from Fahrenheit to Celsius while preserving all existing functionality.
Update an existing flow's configuration. Requires the complete flow object including all nodes and edges. To modify individual nodes without affecting the entire flow, use the endpoint management API. Changes take effect immediately for enabled flows.
Enter an API key with the "NVX: " prefix, e.g. "NVX 123456abcdefg"
Flowchart object
Successful response
Error response object
Copy the flow obgect structure from POST /iot/logic/flow/read response and add the new attribute to the Initiate Atribute node (id": 2). Then paste the resulting object in the body of this request:
You will receive this request status in response:
Congratulations!
You've now successfully enhanced your data flow by:
Adding an engine temperature conversion calculation (Fahrenheit to Celsius)
Maintaining your existing business metrics calculations
Updating your flow while preserving the connection to your fleet vehicles and MQTT endpoint
Last updated
Was this helpful?