Samsung · Schema

CreateSubscriptionRequest

Consumer ElectronicsDeveloper PlatformIoTMobileSmart HomeSmart TVWearables

Properties

Name Type Description
sourceType string
device object
View JSON Schema on GitHub

JSON Schema

samsung-createsubscriptionrequest-schema.json Raw ↑
{
  "$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"
        }
      }
    }
  }
}