REST API Reference//
- Create or replace a twin relationship
Retrieve a twin relationship
List outgoing relationships for a twin
List incoming relationships for a twin
Create or replace a twin...
Only one relationship between twin T1 and twin T2 with the same name and properties can be present -- if the given relationship already exists, the operation is idempotent. Id of the relationship will be derived by the system and will override the value present in the request.
Security
oauth2
Instance of DigitalTwinRelationship.
The name of the relationship, which defines the type of link from source twin to target twin (e.g. isPartOf, locatedIn, servedBy, etc.. ).
Example:"isFedBy"
- https://.app.willowinc.com/api/v3https://.app.willowinc.com/api/v3/twins/relationships
{ "Id": "AHU-1_isFedBy_substance_ChilledWater_Chiller-1", "targetId": "Chiller-1", "sourceId": "AHU-1", "name": "isFedBy", "properties": { "substance": "ChilledWater" } }
Created or Updated DigitalTwinRelationship.
The name of the relationship, which defines the type of link from source twin to target twin (e.g. isPartOf, locatedIn, servedBy, etc.. ).
Example:"isFedBy"
Response
{ "Id": "AHU-1_isFedBy_substance_ChilledWater_Chiller-1", "targetId": "Chiller-1", "sourceId": "AHU-1", "name": "isFedBy", "properties": { "substance": "ChilledWater" } }