Add Readings
This API allows to insert readings to specific data-source, according to Data-source's schema
POST
https://api.zira.us/public/reading
Payload example
[
{
"meterId": "23139",
"readings": [
{
"timestamp": "2023-01-12T07:00:00",
"values": {
"91": "2",
"95": "2433"
}
},
{
"timestamp": "2023-01-12T08:00:00",
"values": {
"91": "2",
"95": "2433"
}
}
]
}
]
Properties
Property | Required | Type | Example | Description |
---|---|---|---|---|
meterId | true | String | "123" | Data-source id. can be copied from Zira UI or fetched programmatically using get-data-sources API |
readings | true | Array |
| The reading array |
timestamp | true | String | "2021-01-21T19:32:00" | Date-time of the reading using ISO 8601 standard Reading will appear on zira using the site timezone |
values | true | Object | {"91": "2", "95": "2433"} | the key names are the metric ids copied from Zira UI or fetched programmatically using get-data-source API |