{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "items": { "type": "array", "items": { "title": "Organization", "description": "Schema for a single Organization", "type": "object", "properties": { "id": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "orgId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "creationDate": { "type": "string", "format": "date-time" }, "lastUpdated": { "type": "string", "format": "date-time" }, "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "description": { "type": "string", "maxLength": 32767 }, "solutionsEnabled": { "type": "boolean" }, "members": { "type": "array", "items": { "type": "object", "properties": { "userId": { "type": "string", "pattern": "^[A-Fa-f\\d]{24}$" }, "firstName": { "type": "string", "minLength": 1, "maxLength": 1024 }, "lastName": { "type": "string", "minLength": 1, "maxLength": 1024 }, "email": { "type": "string", "format": "email", "maxLength": 1024 }, "avatarUrl": { "type": "string", "format": "url" }, "role": { "type": "string", "enum": [ "admin", "edit", "view" ] } } } }, "limits": { "application": { "type": "number" }, "applicationkey": { "type": "number" }, "dashboard": { "type": "number" }, "device": { "type": "number" }, "devicerecipe": { "type": "number" }, "flow": { "type": "number" }, "solution": { "type": "number" }, "webhook": { "type": "number" }, "dataTTL": { "type": "number" } }, "summary": { "type": "object", "properties": { "appCount": { "type": "number" }, "dashCount": { "type": "number" }, "solutionCount": { "type": "number" }, "deviceCount": { "type": "number" }, "flowCount": { "type": "number" }, "webhookCount": { "type": "number" }, "keyCount": { "type": "number" }, "eventCount": { "type": "number" }, "deviceRecipeCount": { "type": "number" } } } } } }, "count": { "type": "integer" }, "totalCount": { "type": "integer" }, "perPage": { "type": "integer" }, "page": { "type": "integer" }, "filter": { "type": "string" }, "filterField": { "type": "string" }, "sortField": { "type": "string" }, "sortDirection": { "type": "string", "enum": [ "asc", "desc" ] } } }