ThingsBoard icon

ThingsBoard

Interact with ThingsBoard REST API

Relation → By From (with Relation Type)

AI-generated

Summary

Fetch all outgoing relations of a specific relation type originating from a source entity in ThingsBoard.

Inputs

  • authentication — Select the authentication mechanism: API Key or Username / Password.
  • fromId (required) — The unique ID of the source entity originating the relation (e.g., 784f394c-42b6-435a-983c-b7beff2784f9).
  • fromType (required) — The entity type of the source entity (e.g., DEVICE, ASSET, CUSTOMER).
  • relationType (required) — The type of relation to filter by (e.g., Contains, Manages).

Output shape

a list of items

Returns an array of relation objects matching the specified source entity and relation type under the COMMON relation type group.

Examples

Example 1: Find all 'Contains' relations originating from a specific device

From ID: 784f394c-42b6-435a-983c-b7beff2784f9, From Type: DEVICE, Relation Type: Contains

Links

Discussion