The custom script to create hierarchy fails with 400 error.
Payload
v16.3.1
Auto-numbering is not enabled on attribute 'Hierarchy ID'.
The code field is conditionally required in the payload based on the 'Hierarchy ID' auto-numbering setting:
Disabled: The code field is mandatory and must be included in the payload.Enabled: The code field must be omitted from the payload, as the system will generate it.