POST request with the parent hierarchy levels and the details of the new hierarchy to be created.{
"hierarchy": {
"prog_id": 164951,
"hierarchy_level": "WOMAN34"
}
}hierarchy_level specified in the request already exists, the API will return an HTTP 422 error:{
"message": "hierarchy_level with {hierarchy_level} already exists"
}hierarchy_type does not exist, the API returns an HTTP 422 error:{
"message": "hierarchy_type with {hierarchy_type} not found"
}{
"message": "parent_hierarchy_type with {parent_hierarchy_type} not found"
}POST request to create a product hierarchy, handle errors, and log the response for troubleshooting purposes.