cancel
Showing results for 
Search instead for 
Did you mean: 

change Attribute set

SOLVED

change Attribute set

Hello everyone!

 

Is it possible by API to change my attribute set of my products?

 

Thank you.

Luciano

1 ACCEPTED SOLUTION

Accepted Solutions

Re: change Attribute set

Hi @luciano_siqueir 

 

Looking at the API lists - directly bulk product update API is not there but you can try bulk-endpoints API - https://devdocs.magento.com/guides/v2.3/rest/bulk-endpoints.html

 

Another option would be to create a script and run the products update as an bulk as every time you will require to pass product_sku in the API so.

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

View solution in original post

5 REPLIES 5

Re: change Attribute set

Hi @luciano_siqueir 

 

Yes, you can change your products attribute sets using the REST API.

 

Ultimately you will require to use the update product API  and pass the attribute_set_id which you would like to change in the parameters and pass remaining required parameters.

 

Require to use Method : PUT

 

Access Token :  Admin access token.

 

Refer this link for more details - https://devdocs.magento.com/swagger/#/catalogProductRepositoryV1/catalogProductRepositoryV1SavePut 

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: change Attribute set

Hi Manthan.

 

Thanks for your help!

Just one more question.
Can I use any APIs to do this for all my products at once?

 

Tks,

Luciano

Re: change Attribute set

Hi @luciano_siqueir 

 

Looking at the API lists - directly bulk product update API is not there but you can try bulk-endpoints API - https://devdocs.magento.com/guides/v2.3/rest/bulk-endpoints.html

 

Another option would be to create a script and run the products update as an bulk as every time you will require to pass product_sku in the API so.

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution

Re: change Attribute set

@Manthan Dave 

 

Thank you !!!

Re: change Attribute set

Hi @luciano_siqueir 

 

Happy to help and keep helping others Smiley Happy

if issue solved,Click Kudos & Accept as Solution