POST api/Conditions/Trees
Create a ConditionTree
Request Information
URI Parameters
None.
Body Parameters
The ConditionTree to be created
Add_ConditionTree| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Tree Name |
string |
None. |
| OwnerID |
Tree Owner ID |
integer |
None. |
| OwnerType |
Tree Owner Type |
OwnerType |
None. |
| Notes |
Tree Notes |
string |
None. |
| Trunk |
Main Trunk (ConditionBranch) of the Condition Tree |
Add_ConditionBranch |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{
"Name": "sample string 1",
"OwnerID": 2,
"OwnerType": 10,
"Notes": "sample string 3",
"Trunk": {
"Name": "sample string 1",
"DisplayIndex": 1,
"LogicOperator": 0,
"SubBranches": [],
"Leaves": [
{
"Name": "sample string 3",
"BranchID": 4,
"DisplayIndex": 1,
"LinkID": 1,
"LinkObjectType": 10,
"LinkValue": 1.0,
"LinkCondition": 0
},
{
"Name": "sample string 3",
"BranchID": 4,
"DisplayIndex": 1,
"LinkID": 1,
"LinkObjectType": 10,
"LinkValue": 1.0,
"LinkCondition": 0
}
]
}
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
object with created ConditionTree and relevant messages
GetConditionTreeResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Trees |
Array of ConditionTrees |
Collection of ConditionTreeStruct |
None. |
| Messages |
Array of messages |
Collection of Message |
None. |
| ServerInformation |
Relevant information regarding the Server |
ServerInformation |
None. |
| VersionInformation |
Relevant information regarding the API's version |
VersionInformation |
None. |
Response Formats
application/json, text/json, text/html
Sample:
{
"Trees": [
{
"ID": 1,
"Name": "sample string 2",
"OwnerID": 3,
"OwnerType": 10,
"OwnerTypeName": "Device",
"OwnerName": "sample string 4",
"Notes": "sample string 5",
"Trunk": {
"ID": 2,
"Name": "sample string 3",
"DisplayIndex": 4,
"LogicOperator": 0,
"SubBranches": [],
"Leaves": [
{
"ID": 2,
"Name": "sample string 3",
"DisplayIndex": 1,
"LinkID": 1,
"LinkObjectType": 10,
"LinkObjectTypeName": "Device",
"LinkObjectName": "sample string 4",
"LinkValue": 1.0,
"LinkCondition": 0
},
{
"ID": 2,
"Name": "sample string 3",
"DisplayIndex": 1,
"LinkID": 1,
"LinkObjectType": 10,
"LinkObjectTypeName": "Device",
"LinkObjectName": "sample string 4",
"LinkValue": 1.0,
"LinkCondition": 0
}
]
}
},
{
"ID": 1,
"Name": "sample string 2",
"OwnerID": 3,
"OwnerType": 10,
"OwnerTypeName": "Device",
"OwnerName": "sample string 4",
"Notes": "sample string 5",
"Trunk": {
"ID": 2,
"Name": "sample string 3",
"DisplayIndex": 4,
"LogicOperator": 0,
"SubBranches": [],
"Leaves": [
{
"ID": 2,
"Name": "sample string 3",
"DisplayIndex": 1,
"LinkID": 1,
"LinkObjectType": 10,
"LinkObjectTypeName": "Device",
"LinkObjectName": "sample string 4",
"LinkValue": 1.0,
"LinkCondition": 0
},
{
"ID": 2,
"Name": "sample string 3",
"DisplayIndex": 1,
"LinkID": 1,
"LinkObjectType": 10,
"LinkObjectTypeName": "Device",
"LinkObjectName": "sample string 4",
"LinkValue": 1.0,
"LinkCondition": 0
}
]
}
}
],
"Messages": [
{
"Severity": 0,
"MessageCode": 1,
"CodeDesc": 2,
"MessageText": "sample string 3",
"RecordNumber": 4
},
{
"Severity": 0,
"MessageCode": 1,
"CodeDesc": 2,
"MessageText": "sample string 3",
"RecordNumber": 4
}
],
"ServerInformation": {
"CurrentTimeUTC": "2025-11-09T21:25:12.7092641+10:00",
"BuildDateUTC": "2025-11-09T21:25:12.7092641+10:00"
},
"VersionInformation": {
"Major": 1,
"Minor": 8,
"Hotfix": 0,
"Beta": true,
"Version": "1.8.0.BETA"
}
}