Get List of Relation Infos (findInfoByFrom)
Returns list of relation info objects for the specified entity by the 'from' direction.
If the user has the authority of 'System Administrator', the server checks that the entity is owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that the entity is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the entity is assigned to the same customer. Relation Info is an extension of the default Relation object that contains information about the 'from' and 'to' entity names.
Request
- Base URLhttps://demo.thingsboard.io
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
A string value representing the entity type. For example, 'DEVICE'
A string value representing relation type group. For example, 'COMMON'
A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
A string value representing the entity type. For example, 'DEVICE'
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",
"fromName": "A4B72CCDFF33",
"toName": "A4B72CCDFF35",
"additionalInfo": {}
}
]Changes
No recorded changes to this operation across all 2 revisions of this API.