Send your data

To send your data, you will need the following information:

Authentication

The API key is used to secure the upload of your data. You will need to add your API key to the request using the header "Authorization: Bearer {API key}".

Send data

URL: https://api.reuniwatt.com/v1/{id_product}

curl -X POST "https://api.reuniwatt.com/v1/{id product}" -H  "accept: application/json" -H  "Content-Type: application/json" -d 
    '{
        "Site1": {
          "Variable1": {
            "2020-09-30T00:15:00+00:00": 0.0,
            "2020-09-30T00:30:00+00:00": 0.0,
            "2020-09-30T00:45:00+00:00": 0.0,
            ...
            "2020-09-30T23:15:00+00:00": 0.0,
            "2020-09-30T23:30:00+00:00": 0.0,
            "2020-09-30T23:45:00+00:00": 0.0
          },
          "Variable2": {
            "2020-09-30T00:15:00+00:00": 0.0,
            "2020-09-30T00:30:00+00:00": 0.0,
            "2020-09-30T00:45:00+00:00": 0.0,
            ...
            "2020-09-30T23:15:00+00:00": 0.0,
            "2020-09-30T23:30:00+00:00": 0.0,
            "2020-09-30T23:45:00+00:00": 0.0
          }
        }
      }'

Response code

On successful operation, the API will return HTTP 200 code.