You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[**deleteRelations**](#deleteRelations)|**DELETE** /api/relations | Delete common relations (deleteRelations) |
8
7
|[**findEntityRelationInfosByFrom**](#findEntityRelationInfosByFrom)|**GET** /api/relations/info/from/{fromType}/{fromId} | Get List of Relation Infos (findEntityRelationInfosByFrom) |
9
8
|[**findEntityRelationInfosByQuery**](#findEntityRelationInfosByQuery)|**POST** /api/relations/info | Find related entity infos (findEntityRelationInfosByQuery) |
Deletes a relation between two entities in the platform. If the user has the authority of 'System Administrator', the server checks that 'from' and 'to' entities are owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that 'from' and 'to' entities are owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the 'from' and 'to' entities are assigned to the same customer.
|**fromId**|**String**| A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' ||
35
-
|**fromType**|**String**| A string value representing the entity type. For example, 'DEVICE' ||
36
-
|**relationType**|**String**| A string value representing relation type between entities. For example, 'Contains', 'Manages'. It can be any string value. ||
37
-
|**toId**|**String**| A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' ||
38
-
|**toType**|**String**| A string value representing the entity type. For example, 'DEVICE' ||
39
-
|**relationTypeGroup**|**String**| A string value representing relation type group. For example, 'COMMON' |[optional]|
Deletes a relation between two entities in the platform. If the user has the authority of 'System Administrator', the server checks that 'from' and 'to' entities are owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that 'from' and 'to' entities are owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the 'from' and 'to' entities are assigned to the same customer.
Copy file name to clipboardExpand all lines: ce/spec/openapi.json
+4-186Lines changed: 4 additions & 186 deletions
Original file line number
Diff line number
Diff line change
@@ -38572,188 +38572,6 @@
38572
38572
"ApiKeyForm": []
38573
38573
}
38574
38574
]
38575
-
},
38576
-
"delete": {
38577
-
"tags": [
38578
-
"entity-relation-controller"
38579
-
],
38580
-
"summary": "Delete Relation (deleteRelation)",
38581
-
"description": "Deletes a relation between two entities in the platform. \n\nIf the user has the authority of 'System Administrator', the server checks that 'from' and 'to' entities are owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that 'from' and 'to' entities are owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the 'from' and 'to' entities are assigned to the same customer.",
38582
-
"operationId": "deleteRelation",
38583
-
"parameters": [
38584
-
{
38585
-
"name": "fromId",
38586
-
"in": "query",
38587
-
"description": "A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'",
38588
-
"required": true,
38589
-
"schema": {
38590
-
"type": "string"
38591
-
}
38592
-
},
38593
-
{
38594
-
"name": "fromType",
38595
-
"in": "query",
38596
-
"description": "A string value representing the entity type. For example, 'DEVICE'",
38597
-
"required": true,
38598
-
"schema": {
38599
-
"type": "string"
38600
-
}
38601
-
},
38602
-
{
38603
-
"name": "relationType",
38604
-
"in": "query",
38605
-
"description": "A string value representing relation type between entities. For example, 'Contains', 'Manages'. It can be any string value.",
38606
-
"required": true,
38607
-
"schema": {
38608
-
"type": "string"
38609
-
}
38610
-
},
38611
-
{
38612
-
"name": "relationTypeGroup",
38613
-
"in": "query",
38614
-
"description": "A string value representing relation type group. For example, 'COMMON'",
38615
-
"required": false,
38616
-
"schema": {
38617
-
"type": "string"
38618
-
}
38619
-
},
38620
-
{
38621
-
"name": "toId",
38622
-
"in": "query",
38623
-
"description": "A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'",
38624
-
"required": true,
38625
-
"schema": {
38626
-
"type": "string"
38627
-
}
38628
-
},
38629
-
{
38630
-
"name": "toType",
38631
-
"in": "query",
38632
-
"description": "A string value representing the entity type. For example, 'DEVICE'",
"description": "Deletes a relation between two entities in the platform. \n\nIf the user has the authority of 'System Administrator', the server checks that 'from' and 'to' entities are owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that 'from' and 'to' entities are owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the 'from' and 'to' entities are assigned to the same customer.",
0 commit comments