---
title: >-
  Breaking changes to media in GraphQL API's ProductSet mutation in version
  2024-10 - Shopify developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/breaking-changes-to-media-in-graphql-api-s-productset-mutation-in-version-2024-10
  md: >-
    https://shopify.dev/changelog/breaking-changes-to-media-in-graphql-api-s-productset-mutation-in-version-2024-10.md
metadata:
  effectiveApiVersion: 2024-10
  affectedApi:
    - displayName: Admin GraphQL API
      handle: admin-graphql
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: true
  createdAt: '2024-07-16T05:48:06-04:00'
  postedAt: '2024-08-20T00:00:00-04:00'
  updatedAt: '2024-08-16T11:13:56-04:00'
  effectiveAt: '2024-08-20T00:00:00-04:00'
---

August 20, 2024

Tags:

* Action Required
* Admin GraphQL API
* 2024-10

# 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](https://shopify.dev/docs/api/admin-graphql/2024-10/input-objects/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`](https://shopify.dev/docs/api/admin-graphql/2024-07/input-objects/ProductSetInput#field-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`](https://shopify.dev/docs/api/admin-graphql/2024-07/input-objects/ProductVariantSetInput#field-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](https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/productSet) on Shopify.dev.
