0

Hi Can I use PUT async/bulk/V1/products/ this endpoint bulk update some custom attributes? However, I am not success to do so. Anyone can give me an advice what the payload should look like? Thankyou so much "

{
  "product": {
    "sku": "203-197-1000",
    "custom_attributes": [
      {
        "attribute_code": "description2",
        "value": "CHECK CHECK 555"
      }
    ]
  },
  "product": {
    "sku": "203-197-1234",
    "custom_attributes": [
      {
        "attribute_code": "description2",
        "value": "CHECK CHECK 666"
      }
    ]
  }
}

1 Answer 1

0

You just need to re-arrange some of the array nesting slightly, the below should work:

[
    {
        "product": {
            "sku": "203-197-1000",
            "custom_attributes": [
                {
                    "attribute_code": "description2",
                    "value": "CHECK CHECK 555"
                }
            ]
        }
    },
    {
        "product": {
            "sku": "203-197-1234",
            "custom_attributes": [
                {
                    "attribute_code": "description2",
                    "value": "CHECK CHECK 666"
                }
            ]
        }
    }
]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.