Add Readings

Description

Add Reading API allows to insert readings related to specific data-source.

View in postman

POST https://api.zira.us/public/reading/named/

Example payload

[{
	"meterId":"4080", 
	"timestamp": "2021-04-09T05:44:20",
	"values": [{ "temperature":"123", "humidity":"456" }]
}]

Properties

Property Required Type Example Description
meterId true String "123" Zira data-source id. can be copied from Zira UI or fetched programmatically using Get Data-Source API
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 [{ "temperature" : "123" , "humidity" : "456" }] the key names are the metric ids copied from Zira UI or fetched programmatically using Get Data-Source API

Related videos

Generate API-Key

Using Postman for API testing