Node
Operations for managing flow nodes (endpoints)
Create a new node.
All node types are created through this endpoint, the type is defined in the request body.
Enter an API key with the "NVX: " prefix, e.g. "NVX 123456abcdefg"
Successful creation response
Error response object
POST /v2/iot/logic/flow/endpoint/create HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 358
{
"endpoint": {
"user_id": 8,
"type": "output_mqtt_client",
"title": "MQTT Endpoint Client Properties",
"status": "text",
"properties": {
"protocol": "NGP",
"domain": "127.0.0.1",
"port": 1883,
"client_id": "Navixy (panel #123)",
"qos": 1,
"topics": [
"iot/navixy"
],
"version": "5.0",
"use_ssl": false,
"mqtt_auth": true,
"user_name": "navixy",
"user_password": "your_super_strong_password"
}
}
}{
"success": true,
"id": 1723
}Read an existing node details.
Enter an API key with the "NVX: " prefix, e.g. "NVX 123456abcdefg"
Endpoint ID in database
1723Successful response to read endpoint
Error response object
POST /v2/iot/logic/flow/endpoint/read HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"endpoint_id": 1723
}{
"success": true,
"value": {
"id": 12345,
"user_id": 8,
"type": "output_mqtt_client",
"title": "MQTT Endpoint Client Properties",
"status": "text",
"properties": {
"protocol": "NGP",
"domain": "127.0.0.1",
"port": 1883,
"client_id": "Navixy (panel #123)",
"qos": 1,
"topics": [
"iot/navixy"
],
"version": "5.0",
"use_ssl": false,
"mqtt_auth": true,
"user_name": "navixy",
"user_password": "your_super_strong_password"
}
}
}Update an existing node details.
Enter an API key with the "NVX: " prefix, e.g. "NVX 123456abcdefg"
Input or output endpoint
Successful response
Error response object
POST /v2/iot/logic/flow/endpoint/update HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 358
{
"endpoint": {
"user_id": 8,
"type": "output_mqtt_client",
"title": "MQTT Endpoint Client Properties",
"status": "text",
"properties": {
"protocol": "NGP",
"domain": "127.0.0.1",
"port": 1883,
"client_id": "Navixy (panel #123)",
"qos": 1,
"topics": [
"iot/navixy"
],
"version": "5.0",
"use_ssl": false,
"mqtt_auth": true,
"user_name": "navixy",
"user_password": "your_super_strong_password"
}
}
}{
"success": true
}Delete a node.
Enter an API key with the "NVX: " prefix, e.g. "NVX 123456abcdefg"
Endpoint ID in database
1723Successful response
Error response object
POST /v2/iot/logic/flow/endpoint/delete HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"endpoint_id": 1723
}{
"success": true
}Get list of nodes existing in a user account.
Enter an API key with the "NVX: " prefix, e.g. "NVX 123456abcdefg"
Successful response to read a list of endpoints
Error response object
POST /v2/iot/logic/flow/endpoint/list HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2
{}{
"success": true,
"list": [
{
"id": 12345,
"user_id": 8,
"type": "output_mqtt_client",
"title": "MQTT Endpoint Client Properties",
"status": "text",
"properties": {
"protocol": "NGP",
"domain": "127.0.0.1",
"port": 1883,
"client_id": "Navixy (panel #123)",
"qos": 1,
"topics": [
"iot/navixy"
],
"version": "5.0",
"use_ssl": false,
"mqtt_auth": true,
"user_name": "navixy",
"user_password": "your_super_strong_password"
}
}
]
}Last updated
Was this helpful?