Skip to main content

Breaking changes to media in GraphQL API's ProductSet mutation in version 2024-10

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 added id 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 new FileSetInput type.

  • ProductSetVariantInput.mediaId is being removed and replaced with **file** field, which will associate the file with the variant. This field utilizes the new FileSetInput type.

For more detailed information and examples, visit our productSet documentation on Shopify.dev.

Was this section helpful?