sku_list_items

Update a SKU list item

Changed on

Update a SKU list item

patch/sku_list_items/{skuListItemId}

Request

  • Base URL
    https://{your_organization_slug}.commercelayer.io/api
  • URL
    https://{your_organization_slug}.commercelayer.io/api/sku_list_items/{skuListItemId}
  • Auth
    HTTP bearer

Path parameters

skuListItemIdstring required

The resource's id

Request body

Example request

{
  "data": {
    "id": "XAyRWNUzyN",
    "attributes": {
      "position": 2,
      "sku_code": "TSHIRTMM000000FFFFFFXLXX",
      "quantity": 1,
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      }
    }
  }
}

Response

The updated SKU list item object

Changes

    • breaking

      request property / was restricted to a list of enum values

    • info

      the request property // became nullable

    • info

      the request property // became nullable

    • info

      the request property // became nullable

    • info

      the request property // became nullable

    • info

      the request property // became nullable

    • info

      the request property // became nullable

    • info

      the request property default value sku_list_items was removed

    • info

      added the new sku_list_items enum value to the request property /

    • info

      added the media type application/vnd.api+json for the response with the status