get
https://api.genability.com/rest/public/timeofuses///intervals
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Retrieve intervals for a time-of-use group.
Use this endpoint to convert a TOU group definition into concrete date-time intervals. You can use the returned intervals to determine which TOU applies during a specific date range.
Resource URI
GET /rest/public/timeofuses/{lseId}/{touGroupId}/intervalsPath parameters
| Parameter | Type | Description |
|---|---|---|
lseId | Long | LSE ID for the TOU group. Required. |
touGroupId | Long | TOU group ID within the LSE. Required. |
Query parameters
| Parameter | Type | Description |
|---|---|---|
fromDateTime | DateTime | Start date and time for returned intervals. Defaults to the current date and time when omitted. Optional. |
toDateTime | DateTime | End date and time for returned intervals. Defaults to one week after fromDateTime when omitted. Optional. |
For the full interval data model and examples, see Time of Uses.
Example
GET /rest/public/timeofuses/2756/1/intervals?fromDateTime=2016-09-19T00:00:00-04:00&toDateTime=2016-09-26T00:00:00-04:00A successful response returns intervals for all TOUs in the requested TOU group.
