Insert Hierarchy Nodes (v2)

Endpoint: config/sim/v2/hierarchy/zones/bulkInsertNodes

Pre-Processing Validation Criteria

Validation messages:
  • A non-empty request file is required.

  • You do not have permissions to access this resource.

  • The field hierUnitId must be between 1 and 999999999.

  • Name should contain a valid language.

  • Name cannot exceed 128 characters.

  • The field objectNum must be between 1 and 999999999.

  • Options must contain only 0's and 1's.

  • Options cannot be null.

  • The field options must be a string of length 16.

  • The field parentHierUnitId must be between 1 and 999999999.

  • The field zoneType must be either null, 1 or 2.

  • The value of nodeType should be Location/RVC/Zone.

  • The field parentHierUnitId is required.

  • For nodeType: Zones:
    • The field objectNum is required for nodeType 'Zone'.

    • Cannot set invalid option bit.

    • Duplicate objectNum under the same zone/Enterprise.

    • Name cannot be null.

    • Invalid Language Code specified: {list of invalid codes}.

  • For nodeType: RVC or Location:
    • The field hierUnitId is required for provided nodeType.

    • The field zoneType is invalid for provided nodeType.

    • The field name is invalid for provided nodeType.

    • Cannot set invalid option bit.

    • Duplicate node under the same zone

Sample Request

[
  {
    "nodeType": "Location",
    "parentHierUnitId": 322,
    "hierUnitId": 3625,
    "zoneType": 1,
    "options": "1110100000000000"
  },
  {
    "nodeType": "RVC",
    "parentHierUnitId": 324,
    "hierUnitId": 3635,
    "zoneType": 2,
    "options": "0111100000000000"
  },
  {
    "nodeType": "Zone",
    "objectNum": 2,
    "parentHierUnitId": 324,
    "zoneType": 2,
    "options": "0010100000000000",
    "name": {
        "2": "Zone2"
      }
  }
]