Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions flexmeasures/api/v3_0/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,16 @@ def upload_data(
.. code-block:: json

{
"data": [
{
"uploaded-files": "[\"file1.csv\", \"file2.csv\"]"
}
]
"uploaded-files": ["<file1.csv>", "<file2.csv>"],
"belief-time-measured-instantly": false
}

where the ``uploaded-files`` field should be sent as a multipart file upload.

By default, the belief time of the recorded data will be the time at which the data was received.
To record the data as if it were sent right after the fact,
set the optional ``belief-time-measured-instantly`` field to ``true``.

The file should have columns for a timestamp (event_start) and a value (event_value).
The timestamp should be in ISO 8601 format.
The value should be a numeric value.
Expand Down