Data Sinks
⚠️ Experimental — this resource is under active development and may change without notice.
Returns the data sinks in your organization. A data sink is a target a SPARK publishes its captured values to: an OPC UA server it hosts, an MQTT broker, or the ENLYZE platform.
Successful Response
Unprocessable Content
GET /api/v2/data-sinks HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"name": "opcua-server",
"spark": "123e4567-e89b-12d3-a456-426614174000",
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"type": "mqtt",
"details": {
"type": "text",
"host": "text",
"port": 1,
"client_id": "text",
"topic": "text",
"publish_interval": 10000
}
}
],
"metadata": {
"next_cursor": "text"
}
}Create a new data sink on a SPARK.
Human readable name of the data sink, unique per SPARK.
opcua-serverThe SPARK that publishes to this data sink.
Sink type specific connection and publishing properties.
Successful Response
Human readable name of the data sink, unique per SPARK.
opcua-serverThe SPARK that publishes to this data sink.
Unique identifier of the data sink.
Kind of data sink; matches details.type.
Sink type specific connection and publishing properties.
Not Found
Conflict
Unprocessable Content
POST /api/v2/data-sinks HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 177
{
"name": "opcua-server",
"spark": "123e4567-e89b-12d3-a456-426614174000",
"details": {
"type": "text",
"host": "text",
"port": 1883,
"client_id": "",
"topic": "text",
"publish_interval": 10000
}
}{
"name": "opcua-server",
"spark": "123e4567-e89b-12d3-a456-426614174000",
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"type": "mqtt",
"details": {
"type": "text",
"host": "text",
"port": 1,
"client_id": "text",
"topic": "text",
"publish_interval": 10000
}
}Returns details for a specific data sink.
Successful Response
Human readable name of the data sink, unique per SPARK.
opcua-serverThe SPARK that publishes to this data sink.
Unique identifier of the data sink.
Kind of data sink; matches details.type.
Sink type specific connection and publishing properties.
Not Found
Validation Error
GET /api/v2/data-sinks/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"name": "opcua-server",
"spark": "123e4567-e89b-12d3-a456-426614174000",
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"type": "mqtt",
"details": {
"type": "text",
"host": "text",
"port": 1,
"client_id": "text",
"topic": "text",
"publish_interval": 10000
}
}Delete a data sink. The SPARK stops publishing to it.
Successful Response
No content
Not Found
Validation Error
DELETE /api/v2/data-sinks/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
No content
Partially update a data sink. Only fields present in the request change. Neither the sink's type nor its spark can be changed; details.users of an OPC UA sink replaces the full list of users.
Human readable name of the data sink, unique per SPARK.
opcua-serverSink type specific connection and publishing properties.
Successful Response
No content
Not Found
Conflict
Unprocessable Content
PATCH /api/v2/data-sinks/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 127
{
"name": "opcua-server",
"details": {
"type": "text",
"host": "text",
"port": 1,
"client_id": "text",
"topic": "text",
"publish_interval": 1
}
}No content
Last updated