Breaking changes to media in GraphQL API's ProductSet mutation in version 2024-10
API
Effective August 20, 2024
Action required
As of GraphQL API version 2024-10
, we are expanding media capabilities in the productSet mutation:
We are adding a new field type
FileSetInput
, which is a derivative of the FileCreateInput, with an addedid
field, which results in being able to both work with already existing media and create new files while using the same type.ProductSet.mediaIds
field is being removed and replaced with the new**files**
field, which expands the former's functionality by allowing you to also create new files to be associated with the product specified. This field utilizes the newFileSetInput
type.ProductSetVariantInput.mediaId
is being removed and replaced with**file**
field, which will associate the file with the variant. This field utilizes the newFileSetInput
type.
For more detailed information and examples, visit our productSet documentation on Shopify.dev.