ThingsBoard · Schema

ThingsBoard EntityRelation

A JSON value representing the relation.

IoTInternet of ThingsDevice ManagementTelemetryOpen-SourceApache 2.0MQTTLwM2MCoAPRule EngineDashboardsEdgeMulti-TenantJavaSpring

Properties

Name Type Description
from object JSON object with [from] Entity Id.
to object JSON object with [to] Entity Id.
type string String value of relation type.
typeGroup string Represents the type group of the relation.
version integer
additionalInfo object Additional parameters of the relation
View JSON Schema on GitHub

JSON Schema

thingsboard-entityrelation-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thingsboard/refs/heads/main/json-schema/thingsboard-entityrelation-schema.json",
  "title": "ThingsBoard EntityRelation",
  "description": "A JSON value representing the relation.",
  "type": "object",
  "properties": {
    "from": {
      "$ref": "#/components/schemas/EntityId",
      "description": "JSON object with [from] Entity Id."
    },
    "to": {
      "$ref": "#/components/schemas/EntityId",
      "description": "JSON object with [to] Entity Id."
    },
    "type": {
      "type": "string",
      "description": "String value of relation type.",
      "example": "Contains",
      "minLength": 1
    },
    "typeGroup": {
      "type": "string",
      "description": "Represents the type group of the relation.",
      "enum": [
        "COMMON",
        "DASHBOARD",
        "RULE_CHAIN",
        "RULE_NODE",
        "EDGE",
        "EDGE_AUTO_ASSIGN_RULE_CHAIN"
      ],
      "example": "COMMON"
    },
    "version": {
      "type": "integer",
      "format": "int64"
    },
    "additionalInfo": {
      "$ref": "#/components/schemas/JsonNode",
      "description": "Additional parameters of the relation"
    }
  },
  "required": [
    "from",
    "to",
    "type",
    "typeGroup"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/thingsboard-entityrelation"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.