{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "description": { "type": "string", "maxLength": 32767 }, "expirationDate": { "type": "string", "format": "date-time" }, "scope": { "type": "array", "items": { "type": "string", "enum": [ "all.Application", "all.Application.read", "all.Device", "all.Device.read", "application.*", "applicationApiToken.*", "applicationApiTokens.*", "applicationKey.*", "applicationKeys.*", "data.*", "device.*", "deviceRecipe.*", "deviceRecipes.*", "devices.*", "event.*", "events.*", "experienceEndpoint.*", "experienceEndpoints.*", "experienceGroup.*", "experienceGroups.*", "experienceUser.*", "experienceUsers.*", "flow.*", "flows.*", "webhook.*", "webhooks.*", "application.delete", "application.get", "application.patch", "application.payloadCounts", "applicationApiToken.delete", "applicationApiToken.get", "applicationApiToken.patch", "applicationApiTokens.get", "applicationApiTokens.post", "applicationKey.delete", "applicationKey.get", "applicationKey.patch", "applicationKeys.get", "applicationKeys.post", "data.lastValueQuery", "data.timeSeriesQuery", "device.delete", "device.export", "device.get", "device.getCommand", "device.getCompositeState", "device.getLogEntries", "device.getState", "device.patch", "device.removeData", "device.sendCommand", "device.sendState", "deviceRecipe.bulkCreate", "deviceRecipe.delete", "deviceRecipe.get", "deviceRecipe.patch", "deviceRecipes.get", "deviceRecipes.post", "devices.export", "devices.get", "devices.post", "devices.sendCommand", "event.delete", "event.get", "event.patch", "events.get", "events.mostRecentBySeverity", "events.patch", "events.post", "experienceEndpoint.delete", "experienceEndpoint.get", "experienceEndpoint.patch", "experienceEndpoints.get", "experienceEndpoints.post", "experienceEndpoints.stats", "experienceGroup.delete", "experienceGroup.get", "experienceGroup.patch", "experienceGroups.get", "experienceGroups.post", "experienceUser.delete", "experienceUser.get", "experienceUser.patch", "experienceUsers.get", "experienceUsers.post", "flow.delete", "flow.get", "flow.getStorageEntries", "flow.log", "flow.patch", "flow.pressVirtualButton", "flow.setStorageEntry", "flows.create", "flows.get", "webhook.delete", "webhook.get", "webhook.patch", "webhooks.get", "webhooks.post" ] } }, "status": { "type": "string", "enum": [ "active", "inactive" ] } }, "additionalProperties": false, "required": [ "name" ] }