Custom Process fails to create Hierarchy
search cancel

Custom Process fails to create Hierarchy

book

Article ID: 402792

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

The custom script to create hierarchy fails with 400 error. 

Payload

{
"name":"Test123",
"type":"inv"
}

 

 

Environment

v16.3.1

Cause

Auto-numbering is not enabled on attribute 'Hierarchy ID'.

Resolution

The code field is conditionally required in the payload based on the 'Hierarchy ID' auto-numbering setting:

  • If auto-numbering is Disabled: The code field is mandatory and must be included in the payload.
  • If auto-numbering is Enabled: The code field must be omitted from the payload, as the system will generate it.
{
"name":"Test123",
"type":"inv",
"code":"t123"
}