ThingsBoard icon

ThingsBoard

Interact with ThingsBoard REST API

Relation → Info by To

AI-generated

Summary

Fetch detailed relation information for entities where the specified entity is the target ('To' direction).

Inputs

  • toId (required) — The ID of the target entity.
  • toType (required) — The type of the target entity, such as DEVICE.

Output shape

a list of items

Returns an array of relation info objects for the COMMON relation type group targeted at the specified entity.

Examples

Example 1: Get relation details targeting a specific device

To ID = 784f394c-42b6-435a-983c-b7beff2784f9, To Type = DEVICE

Links

Discussion