-
Notifications
You must be signed in to change notification settings - Fork 9.4k
REST API /V1/products/attributes does not update all properties #10205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @sazzle2611 thanks for reporting this issue. |
@sazzle2611 we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue. |
I can reproduce the same issue in magento 2.2.2. I have tried to update the visibility of an attribute ( Update: it seems if I do a PUT
which is really weird. (note that without the entity_type_id it doesn't work) |
Hello @sazzle2611, thank you for report. Unfortunately I wasn't able to reproduce this issue. @tkotosz it's correct behaviour. You have to specify entity type id, because is_visible_on_front property related to product entity. |
@engcom-backlog-nickolas Yeah I understand but still the call is already specified for product attributes based on the API call so why do you still need to add the entity type id to the body request? |
Hi @sazzle2611. Thank you for your report. The fix will be available with the upcoming 2.3.1 release. |
Hi @sazzle2611 , thank you for you report, this issue has already fixed in 2.3-develop branch, and will be available on 2.3.1 release. |
On 2.2.3 i made a plugin like this to fix the issue since we can't upgrade to 2.3 yet : Vendor\Module\di.xml
Vendor\ModulePlugin\AttributeRepositoryPlugin.php
|
Uh oh!
There was an error while loading. Please reload this page.
Using Magento 2.1.7 with the REST API - POST /V1/products/attributes - I can add a new attribute and configure it with settings such as is_filterable.
This is all fine but if I then want to change this setting I can't. I have tried with POST and with PUT /V1/products/attributes/{attributeCode}. The command works as in it will update, for instance, the frontend label in the eav_attribute table, but it does not seem to have any effect on values in the catalog_eav_attribute table.
Steps to reproduce -
Expected result
The attribute is now set to be filterable
Actual result
No change
The text was updated successfully, but these errors were encountered: