Add Hierarchy Nodes
post
/config/sim/v2/hierarchy/zones/nodes
Add a Hierarchy Node of hierType 'Zone'
Request
Supported Media Types
- application/json
- multipart/form-data
Header Parameters
-
Simphony-AuditTrailRef: string
Detail that identifies, who made the change.
Hierarchy Node insert request body
Root Schema : schema
Type:
object
Model for Node Object Insert Request
Show Source
-
hierUnitId:
integer
Hierarchy Unit Id of the node. This field is supported for nodeTypes 'Location' and 'RVC'.Example:
1
-
name:
object name
Name of the zone. This field is only supported and required for nodeType 'Zone'.
-
nodeType(required):
string
Type of the node to be inserted (Location/RVC/Zone)Example:
Zone
-
objectNum:
integer
Object Number of the zone. This field is only supported and required for nodeType 'Zone'.Example:
12
-
options:
string
A string of values 0s and 1s of length 16 representing the options for the hierarchy node
Position(starts from 1) Description 1 EnforceUniquePropertiesWithinZone 2 EnforceUniqueRVCsWithinZone 3 restrictModulesInChildZones 4 allRVCsfromSameLocation 5 sortAlphabetically
List of bits that can be set for a particular zoneType
ZoneType List of valid bits (starts from 1) NULL 3, 5 1 1, 2, 3, 5 2 2, 3, 4, 5 Example:0000000000000000
-
parentHierUnitId(required):
integer
HierUnitId of the zone/enterprise under which the node is to be inserted.Example:
3599
-
zoneType:
integer
Default Value:
null
Type of the zone. This field is only supported for nodeType 'Zone'.
zoneType Eligible Child Nodes NULL NA 1 Locations and RVCs 2 RVCs only Example:1
Nested Schema : name
Type:
object
Name of the zone. This field is only supported and required for nodeType 'Zone'.
Example:
{
"1":"Currency",
"2":"W??hrung",
"3":"Divisa"
}
Response
Supported Media Types
- application/json
200 Response
Insert operation executed successfully.
Root Schema : schema
Type:
Show Source
object
-
hierStrucId:
integer
Unique hierarchy structure value.Example:
1