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

  • Alex LugoAlex Lugo Administrator, Lightspeed Staff Posts: 181 moderator

    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.

    Alex Lugo
    API Support Specialist
    Lightspeed HQ
Sign In or Register to comment.