{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/CreateSubscriptionRequest", "title": "CreateSubscriptionRequest", "type": "object", "required": [ "sourceType" ], "properties": { "sourceType": { "type": "string", "enum": [ "CAPABILITY", "DEVICE", "MODE", "TIMER", "SCENE_LIFECYCLE", "DEVICE_LIFECYCLE" ] }, "device": { "type": "object", "properties": { "deviceId": { "type": "string" }, "componentId": { "type": "string" }, "capability": { "type": "string" }, "attribute": { "type": "string" }, "stateChangeOnly": { "type": "boolean" } } } } }