Get idle periods for meter
| Time | Status | User Agent | |
|---|---|---|---|
| Make a request to see history. |
URL Expired
The URL for this request expired after 30 days.
meter_id
string
required
The unique identifier of the meter.
``200 OK
object
idle_periods
array of objects
required
List containing the idle periods of the meter.
idle_periods*
object
The idle periods of the meter.
start_date
date
required
The start date of the idle period. Date is inclusive. Date format: yyyy-MM-dd.
end_date
date
The end date of the idle period. Date is exclusive. Date format: yyyy-MM-dd.
reason
string
required
A reason specifying why the meter is idle in the given period..
``400 Meter id is not a valid UUID.
``401 You are not authorized to perform this operation.
``403 You do not have the necessary permissions for this operation.
``404 Meter with the given uuid is not found.
Base URL
https://api.staging.leap.energy/v1.1/enrollment/meters/{meter_id}/idle_periods
xxxxxxxxxx
curl --request GET \
--url https://api.staging.leap.energy/v1.1/enrollment/meters//idle_periods \
--header 'accept: application/json'
xxxxxxxxxx
{
"idle_periods": [\
\
{\
\
"end_date": "2000-01-23",\
\
"reason": "reason",\
\
"start_date": "2000-01-23"\
\
},\
\
{\
\
"end_date": "2000-01-23",\
\
"reason": "reason",\
\
"start_date": "2000-01-23"\
\
}\
\
]
}