Send Readings data
Sending data to Moderan Readings database via API
Last updated
Sending data to Moderan Readings database via API
Last updated
To enable sending Readings data to Moderan via API you need to:
Get the ID of the Property/Building set for which you want to send the Reading data
Send the example test Reading data, making a POST request
Send the batch Readings to the needed set through another POST
To get the COST_SET_ID see:
To send an example Reading data to Moderan via API
POST
https://www.moderan.net/api/domains/DOMAIN_ID/readingdumps
This endpoint allows you to send your Readings data into Moderan via POST.
date
string
date of the meter reading, =YYYY-MM-DD
meter
string
meter name
set
object
object for which you specify the set ID
id
number
COST_SET_ID which you GET from a Property-Building set query
reading
number
reading data of the meter
Example JSON for sending trial Reading data:
Readings data can be send to Moderan in a batch.
Regardless of how many records you want to send to Moderan, you need to use a batch POST method.
POST
https://www.moderan.net/api/domains/DOMAIN_ID/readingdumps/batch
This endpoint allows you to send your Readings data into Moderan via POST.
date
string
date of the meter reading, =YYYY-MM-DD
meter
string
meter name
set
object
object for which you specify the set ID
id
number
COST_SET_ID which you GET from a Property-Building set query
reading
number
reading data of the meter
Example JSON for sending Readings data in batch: