{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/johnson-controls/json-schema/johnson-controls-time-series-streaming-subscription-request-schema.json",
  "title": "Time series streaming subscription request payload",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/johnson-controls-time-series-api-openapi.yml#/components/schemas/timeSeriesStreamingSubscriptionRequest",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "description": "Collection of items to sign up for.",
      "items": {
        "type": "object",
        "properties": {
          "objectId": {
            "type": "string",
            "description": "The identifier of the object.\n\nIf only `objectId` is specified and not `attributeId`, then trend\nobjects which are objects that have an `objectType` of\n`trendLogClass`, `trendMapperClass`, `bacnetTrendLogExtClass`,\n`trendLogNoextensionClass`, `bacnetTrendLogClass` or\n`bacnetTrendLogMultipleClass` are only supported.\n"
          },
          "attributeId": {
            "type": "string",
            "x-metasysType": "enum",
            "x-metasysEnum": "attributeEnumSet",
            "description": "The identifier of the attribute.\n\nThe values for this property come from the `attributeEnumSet` enumeration.\nFind the definition of `attributeEnumSet` at the relative URL of `/schemas/enums/attributeEnumSet`.\n\n**See also:**\n* [Get enumeration](#operation/getEnumerationAsJsonSchema) for more information on retrieving an enumeration."
          },
          "sampledById": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Filter samples by objects by supplying one or more `sampledById`\nvalues.\n\nAn attribute may have multiple objects sampling it. Use this\nparameter to subscribe to samples only from a specific object or\nset of objects. If no value is given for this parameter, then it\nwill subscribe to samples from all of the objects sampling this\nattribute.\n"
          }
        },
        "required": [
          "objectId"
        ]
      }
    }
  }
}