having a trouble with creating ItemMatrix via API

SwarmingTechSwarmingTech Member Posts: 2

When i send attribute1Values field I always got an error response - "Internal server error"

Request example


URI - /API/Account/*******/ItemMatrix.json


1 comment

  • [Deleted User][Deleted User] Posts: 0

    Hello @SwarmingTech ,

    You can't specify them directly; they're added as you add items.

    However, you have to do this in a 2-step process:

    1. Create the item with the itemMatrixID but no attributes:

      "description": "Matrix Item",
      "itemMatrixID": 1234,

    2. Update the item to add the attributes:

      "ItemAttributes": {
        "attribute1": "Red",
        "attribute2": "S",
        "itemAttributeSetID": "2"

    The second step will add the attributes to the matrix (if they aren't already there). If you include the ItemAttributes in the first step, the attributes aren't added to the matrix.

Sign In or Register to comment.