POST
/
data
/
reports
curl --request POST \
  --url http://localhost:8002/data/reports \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "interval_start": "2023-11-07T05:31:56Z",
  "charger_consumption_data": [
    {
      "asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "energy": 123
    }
  ]
}'
{
  "charger_consumption_data_response": [
    {
      "asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "accepted": true,
      "error": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Report containing energy consumption data for multiple assets.

interval_start
string
required

Start time of the reporting interval

charger_consumption_data
object[]
required

List of consumption data points

Energy consumption data for an asset.

Response

200
application/json
Successfully recorded data with processing summary

Response for a data report submission.

charger_consumption_data_response
object[]
required

List of responses for each consumption data point

Response for a single consumption data point.