HTTP: Send Datapoints
We can also use the HTTP API to send Datapoints
or Setpoints
. This API supports JSON and Messagepack and ideal for batch imports or large datasets.
POST /rest/v1/data-points/add HTTP/1.1
Content-Type: application/json
Authorization: Bearer {token}
[
{
"characteristic_uuid": "dfdd98be-a12a-4977-a9af-9485ed859e77",
"component_uuid": "00f80405-55a3-4d8e-91c3-14a10f028cf9",
"service_uuid": "cb6b38a7-824f-4529-843f-acad06a67e69",
"system_uuid": "e787f31a-7dad-460c-9b32-701513c3b2d3",
"value": false
}
]
HTTP/1.1 201 Created
Date: Fri, 21 Feb 2025 04:40:48 GMT
Content-Type: application/json
Content-Length: 0
Connection: close
X-DRIVR-Change: hKF2oTGiaWTYAjWjKl3ipVLDqDkatWEEt2GkdGltZdf/YVdvAGe4A9CmZW50aXR5qWRhdGFwb2ludA==
X-Trace-ID: e342249acdbcea10f437408daefc47c0
Strict-Transport-Security: max-age=31536000; includeSubDomains
curl -X POST "https://stark-industries.api.drivr.cloud/rest/v1/data-points/add" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {token}' \
-d $'[
{
"characteristic_uuid": "dfdd98be-a12a-4977-a9af-9485ed859e77",
"component_uuid": "00f80405-55a3-4d8e-91c3-14a10f028cf9",
"service_uuid": "cb6b38a7-824f-4529-843f-acad06a67e69",
"system_uuid": "e787f31a-7dad-460c-9b32-701513c3b2d3",
"value": false
}
]'
To confirm that the Datapoint
has been successfully created:
-
Navigate to Systems
- Go to Systems → Select your System → Click Analyse.
-
Select Characteristics
- Choose the Characteristic you want to inspect from the left panel.
-
Confirm Display Change (if prompted)
- For Boolean data, you may need to confirm the display change.
-
View Datapoints
- The last 24 hours of Datapoints will be displayed on the right-hand side.