Skip to content

Migration

Import

You can import data into a set directly from the API or through the import tool in the WebApp 'set settings' tab.

Importing data into a set is useful in the following situations:

  • You want to seed a set with data
  • You want to merge two sets
  • You want to bulk insert missing data

To import data, we require a Zip file containing a collection of CSV files, where the name of each file corresponds to its tag.

data.zip
├── tag1.csv
├── tag2.csv
├── tag3.csv
...

Each row in the CSV should have the format [ timestamp, value ], for example:

1325293200,9970.0
1325296800,9428.0
1325300400,9059.0
1325304000,8817.0
1325307600,8743.0
1325311200,8735.0
1325314800,8993.0

Note do not include any header row

[POST] /api/sets/{set_id}/import

Export

You can export the raw data for each tag in a set through the API or the export tool in the WebApp set settings tab.

The exported zip will have the same structure defined above and is compatible with the import tool.

[POST] /api/sets/{set_id}/export