Get idle periods for all meters

Time Status User Agent
Make a request to see history.

URL Expired

The URL for this request expired after 30 days.

account_id

string

deprecated

Deprecated. The account of the logged in user will be used.

``200 OK

object

meter_idle_periods

array of objects

required

The idle periods of the account's meters.

meter_idle_periods*

object

The idle periods of the account's meters.

meter_id

uuid

required

The uuid of the meter.

idle_periods

array of objects

required

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 Account 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.

Base URL

https://api.staging.leap.energy/v1.1/enrollment/meters/idle_periods


xxxxxxxxxx

curl --request GET \

--url https://api.staging.leap.energy/v1.1/enrollment/meters/idle_periods \

--header 'accept: application/json'

xxxxxxxxxx

{

"meter_idle_periods": [

{

"meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",

"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"

}

]

},

{

"meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",

"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"

}

]

}

]

}