entity-relation-controller
Find related entities (findByQuery)
Returns all entities that are related to the specific entity. The entity id, relation type, entity types, depth of the search, and other query parameters defined using complex 'EntityRelationsQuery' object. See 'Model' tab of the Parameters for more info.
post/api/relations
Request
- Base URLhttps://demo.thingsboard.io
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"parameters": {
"rootId": "784f394c-42b6-435a-983c-b7beff2784f9"
},
"filters": [
{
"relationType": "Contains"
}
]
}Response
OK
Example response
[
{
"from": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "DEVICE"
},
"to": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "DEVICE"
},
"type": "Contains",
"typeGroup": "COMMON",
"additionalInfo": {}
}
]Changes
No recorded changes to this operation across all 2 revisions of this API.