RSSAmplifier

Posts - Scott Robinson · @ssxio · Feb 28, 2025

Set Website/Store Assignment via Magento 2 API

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

If you need to update the website a product is assigned to in Magento via the REST API, you can do this fairly easily. You can get the current websites assigned by running this query: curl "https://www.mystore.co.uk/rest/all/V1/products/MY-PRODUCT-SKU" \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer [token]' This will return a JSON payload. Within the payload you’ll find: "id" :…

Read on dor.ky

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.