Bulk Create Data Streams
Reference:
| Field | Mandatory | Description |
|---|---|---|
| Name | Yes | Unique name identifier. It must contain only lowercase alphanumeric characters. The characters ., _ and - are allowed to separate words instead of a space BUT can not be at the beginning or end of the name. |
| Title | Yes | The display name to show on the Kelvin UI. It can contain any characters, including spaces. |
| Description | No | Optional description for the data stream, up to 200 characters. |
| Type | Yes | Determines the type of data, see overview explanations for more details. Allowed values for SDK/API: measurement, computed, data_quality, set_point. |
| Semantic Type | No | Provides context or deeper meaning behind the data, beyond just its format or structure. Check Kelvin API for the full list of available semantic types. |
| Data Type | Yes | Specifies the kind of data in the stream. Allowed values for SDK/API: boolean, number, object, string. |
| Unit | No | Defines the measurement unit for data. Check Kelvin API for the full list of available units. |
Note
You can see a full list of the default Sematic Type and Units available here.
See your Platform Administrator for any custom Semantic Types and Units created for your Kelvin Platform.
Bulk Create Data Streams
In this example we will create a Data Stream with the Semantic Type Pressure and with the name tubing_pressure.
You can create Data Streams in bulk using the import Data Stream option in Data Streams. To start you need to create your Data Stream list in Excel, Google Sheets or any program that can save to a CSV file format.
In this brief demo you can see how to import Data Streams;
On the Data Streams page, click on the Import Data Streams button.
In Step 1, upload your CSV file that you created with all the new Data Stream names you want to create and then click Next.
In Step 2, the file is validated with a check list.
If there is any errors, you will need to correct them and then re-upload the file for re-validation.
There is a special feature in this step that if the units given do not exist on the Kelvin Platform, then they will be automatically created.
Before you can proceed to import you will need to add symbols to each new unit detected. To do this simply click on the Show Details button.
In the Units section you will see red boxed where you need to fill in the relevant details.
Once filled, then you can click on the tick button and then you will see the Import button is active. You can now click on Import and the Data Streams and Units will be created.
The Kelvin API does not need the csv file for creating many Data Streams with one command.
You add all new new Data Streams into an array of objects and then use the /datastreams/bulk/create endpoint.
Unlike the Kelvin UI buik Data Stream import, units will NOT be automatically created. You need to ensure they exist before running this endpoint.
| API cURL Example | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | |
| API Client (Python) Example | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |






