cancel
Showing results for 
Search instead for 
Did you mean: 

Rest API update attribute options

Rest API update attribute options

[EDIT: SOLVED I was looking at an old rest documentation. They now added the PUT endpoint]

 

Hello, I need to update the option of a "select" attribute in Magento (2.4). I've noticed that there is no PUT endpoint for the attribute options API. So I'm trying to use the PUT endpoint to edit the whole attribute but it's not working since I'me getting the error ("Attribute with the same code already exists"). This doesn't make sense. How could I update an option label?

 

image.png

1 REPLY 1

Re: Rest API update attribute options

@Miroir Studio 

Please check your URL as it might be possible that the URL is wrong.

or use the POST method for adding and updating attributes.

 

Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.