Product Images (Beta)
Product Images (Beta)
Product Images (Beta)
International Enhancements for Multi-Storefront
Using the Catalog features of the Admin API, you can set and query information for product images.
First, add an image to the product for the global store. You can do so using the Create a product image endpoint of the REST Management API.
By default, product images are visible on all storefront channels and locales. To change its visibility, see Product image visibility.
You can change the details of an image that you have added to a product:
For a full schema, see the GraphQL Admin API reference.
Setting or removing information requires that you specify ID fields in the input. For more information on how to specify ID fields, see Input fields.
The addedToProduct field indicates the visibility of an image.
The following example makes a product image visible in a channel locale. To set the image visibility for the global store, don’t include the context field in the input.
The following example makes a product image not visible in a channel locale. To set the image visibility for the global store, don’t include the context field in the input.
The following example sets product image information for the global store and a channel locale.
The following example removes product image overrides for the channel locale.
The following example retrieves product image information. You can retrieve global information for the store and overrides for the channel locale.
You can also use the imagesOverrides node to retrieve overrides. This node will return only the images with overrides in the specific channel locale.