Create Data Connection
POST/api/v1/live-data/connection
Request
- application/json
Body
Body
- MOD1
- MOD2
Array [
]
Array [
]
Name of the Data Cnnection
ID
of the Workspace
Possible values: > 0
1000
signals
object
required
Array of Signal ID's or Search JSON's
oneOf
Array of signal ID's
integer
Possible values: > 0
Signal search JSON
Name
of the Workspace
Workspace 1
Name
of the Asset
Asset 1
Name
of the Division
Division 1
Name
of the Unit
Unit 1
Name
of the Signal
Signal 1
Name to give the returned signal. Defaults to the signal ID.
Possible values: <= 127 characters
Serialization format of the data
Possible values: [protobuf
, json
]
Responses
- 200
- 400
- 401
- 404
- 409
Success
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
ID
of the Data Connection
Possible values: > 0
1000
Name of the Data Connection
ID
of the Workspace
Possible values: > 0
1000
URL of the broker to connect to
mqtts://live.data.apps.nor.tech
topics
object[]
required
Array of topics to subscribe to
ID
of the Signal
Possible values: > 0
1000
Name of the topic exposing the Signal data
{
"id": 1000,
"name": "string",
"workspaceId": 1000,
"brokerUrl": "mqtts://live.data.apps.nor.tech",
"topics": [
{
"signalId": 1000,
"name": "string"
}
]
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: [Validation Error
]
errors
object[]
required
Possible values: [body
, query
, path
, headers
]
{
"status": "Validation Error",
"errors": [
{
"error": "string",
"location": "body"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [Unauthorized
]
{
"status": "Unauthorized"
}
Signals not found
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [Signals not found
]
{
"status": "Signals not found"
}
Conflict
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [Data connection already exists
]
{
"status": "Data connection already exists"
}