Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
0 answers
430 views

Magento 2.1: How to get attribute value as text in response of product rest api

I have created a custom attribute "color" and it has the values Red, Green, Blue. When I call /V1/products/:sku it shows the product details and also shows the custom_attributes{"attribute_code":"...
Lovely Setia's user avatar
2 votes
2 answers
3k views

Magento 2 Rest API - how do I add values to dropdown product attribute

I have problems in adding values to an existing product attribute, using the API POST /products/attributes/:attribute_id/options. The corresponding GET API is working fine, as explained below. I have ...
Nicola Lepetit's user avatar
4 votes
0 answers
589 views

How can I remove a custom attribute from a product via REST?

I can add or change a custom attribute of a product, i.e. via curl -X PUT --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "Authorization: Bearer MYTOKEN" -d ...
Tim Riemenschneider's user avatar