Skip to main content

TimeWindowCollection Schema

Data structure for Time Window Collection objects.

Item Type​

This is a collection (list) of TimeWindow items.

Usage​

# Example: Working with TimeWindowCollection
items = [
{"day_of_week":[],"end_time":1,"id":1,"name":"name-value-1","start_time":1},
{"day_of_week":[],"end_time":2,"id":2,"name":"name-value-2","start_time":2}
]

# Pass to an action that requires this collection type
resource.some_action(body=items)

JSON Example​

[
{
"day_of_week": [],
"end_time": 1,
"id": 1,
"name": "name-value-1",
"start_time": 1
},
{
"day_of_week": [],
"end_time": 2,
"id": 2,
"name": "name-value-2",
"start_time": 2
}
]