0

thank you for reading me.

Is there a way to modify a product´s custom attribute?

I´m using postman, i use JSON POST for price and stock but i can´t find the way to update a custom attribute of a product.

Can it be done inside: {{magento_site_path}}/rest/default/V1/products/{{sku}} ?

What would be the Body of the POST request?

1 Answer 1

0

The URL is correct. However, you should use PUT request for updating product.

And in your request json, add the following part:

{
    "product": {
        ......
        "custom_attributes": [
            {
                "attribute_code": "<code>",
                "value": "<value>"
            }
        ]
    }
}

Your Answer

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

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