Skip to main content

DepartmentCollection Schema

Data structure for Department Collection objects.

Item Type​

This is a collection (list) of Department items.

Usage​

# Example: Working with DepartmentCollection
items = [
{"comments":"comments-value-1","deleted":true,"id":1,"idp_id":1,"is_for_unauthenticated_user":true},
{"comments":"comments-value-2","deleted":true,"id":2,"idp_id":2,"is_for_unauthenticated_user":true}
]

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

JSON Example​

[
{
"comments": "comments-value-1",
"deleted": true,
"id": 1,
"idp_id": 1,
"is_for_unauthenticated_user": true
},
{
"comments": "comments-value-2",
"deleted": true,
"id": 2,
"idp_id": 2,
"is_for_unauthenticated_user": true
}
]