put https://app.fracttal.com/api/meter_reading/
This EndPoint can be used to insert a reading into a given meter.
Input parameters
| Parameter | Type | Required | Description | 
|---|---|---|---|
| id | Text | Yes | Code of the asset associated with the meter. | 
Body parameters
| Field | Type | Required | Description | 
|---|---|---|---|
| date | Text | Yes | Date of reading. Format: 'YYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03' | 
| value | Real | Yes | Reading value | 
| serial | Text | Yes | Meter serial (Must be unique) | 
| is_historical | Boolean | No | Indicates whether a historical measurement will be inserted or not. The values this field can have are true or false. If no value is entered for this field, the system defaults to false | 
Output parameters
| Parameter | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| meter | Text | Meter information: 
 | |||||||||||||||||||||
| tasks | Text | Information on the task that was triggered by the reading | 
Example:
Request: (PUT)https://app.fracttal.com/api/meter_reading/HCY1-P1
{"date":"2016-12-07T20:00:00-03","value":2050, "serial":"112","is_historical":true}{
  "success": true,
  "message": "200",
  "data": {
    "meter": {
      "counter_offset_value": 2011,
      "counter_value": 4061,
      "max_value": null,
      "min_value": null,
      "monthly_average_data": 62,
      "last_data": {
        "date": "2016-12-07T00:00:00+00:00",
        "value": 2050,
        "accumulated_value": 4061
      }
    },
    "tasks": [
      {
        "task": "TAREA ANUAL DE MANTENIMIENTO"
      }
    ]
  },
  "total": 0
}Test It
