Roku · JSON Structure

Nabu Cloud Device Create Structure

DeviceCreate schema from Roku Nabu Cloud

Type: object Properties: 6 Required: 2
StreamingTelevisionMediaEntertainmentConnected TVConsumer Electronics

DeviceCreate is a JSON Structure definition published by Roku, describing 6 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

device_type name description account_name properties qa_hub

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/roku/refs/heads/main/json-structure/nabu-cloud-device-create-structure.json",
  "name": "DeviceCreate",
  "description": "DeviceCreate schema from Roku Nabu Cloud",
  "type": "object",
  "properties": {
    "device_type": {
      "$ref": "#/components/schemas/DeviceType",
      "description": "The type of the Device.",
      "examples": [
        "tv"
      ]
    },
    "name": {
      "type": "string",
      "maxLength": 255,
      "minLength": 3,
      "title": "Name",
      "description": "The name of the Device."
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 4096,
          "minLength": 0
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "Description of the Device."
    },
    "account_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Account Name",
      "description": "Account name of the Device.",
      "examples": [
        "user@roku.com"
      ]
    },
    "properties": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object",
          "maxProperties": 8192
        },
        {
          "type": "null"
        }
      ],
      "title": "Properties",
      "description": "Device properties.",
      "examples": [
        {},
        {
          "config_service_flags": {
            "fw.swup.channel-sync-enabled": "false"
          }
        }
      ]
    },
    "qa_hub": {
      "type": "boolean",
      "title": "Qa Hub",
      "description": "Whether the device should be auto registered in QA Hub."
    }
  },
  "required": [
    "device_type",
    "name"
  ]
}