Skip to content

API Documentation

upload-script [POST]

Upload a data analysis script

URI
POST /api/upload-script

Example Request
Headers

{Content-Type: "application/json"}
Body
{
  "code": "def main(raw_data, parse_data, save_data_point):\n    for i in raw_data():\n        data = parse_data(i)",
  "language": "py",
  "name": "script",
  "description": "script description",
  "outputType": "line_chart",
  "outputName": "Heartbeat"
}

Response 200
ok

download [Get]

Download raw sensor data CSV for a session

URI
GET /api/download/_.csv?filename=filename

Example Request
GET /api/download/43_21.csv?filename=session_data.csv

Response 200
…CSV file contents


Last update: January 26, 2023