1 Reply Latest reply on Sep 28, 2021 11:12 PM by Debopriya Roy

    Add structure group via REST API

    Seasoned Veteran

      I am attempting to add a structure group via the REST API, but am receiving the following error:

       

      Unable to perform operation due to an unknown error. Please try again or contact your PIM administrator or the Support Hotline

       

      Meanwhile, the console log shows a java.lang.IllegalStateException: parentProxy: Must not be null

       

      I am posting the JSON below to http://localhost:1501/rest/V1.0/list/StructureGroup .

       

      This works properly when updating an existing structure group, and I can confirm that the parent identifier is valid. I have also tried referring to the ParentIdentifier with both the 'SGx'@'PRIMARY' as well as the 12345@10001 notation and both generated the same error.

       

      Regards,

      Shawn

       

      {

      "columns": [

      {

      "identifier": "StructureGroup.Identifier"

      },

      {

      "identifier": "StructureGroup.ParentIdentifier"

      }

      ],

      "rows": [

      {

      "object":

      {

      "id": "'SG4402480100009999'@'PRIMARY'"

      },

      "values": [

      "SG4402480100009999",

      "SG4402480100001306"

      ]

      }

      ]

      }