DeviceCollection Schema
Data structure for Device Collection objects.
Item Type
This is a collection (list) of Device items.
Usage
# Example: Working with DeviceCollection
items = [
{"id":1,"name":"name-value-1","userid":1,"os":"os-value-1","hw_model":"hw_model-value-1"},
{"id":2,"name":"name-value-2","userid":2,"os":"os-value-2","hw_model":"hw_model-value-2"}
]
# Pass to an action that requires this collection type
resource.some_action(body=items)
JSON Example
[
{
"id": 1,
"name": "name-value-1",
"userid": 1,
"os": "os-value-1",
"hw_model": "hw_model-value-1"
},
{
"id": 2,
"name": "name-value-2",
"userid": 2,
"os": "os-value-2",
"hw_model": "hw_model-value-2"
}
]