--- title: >- Updated MetafieldsSetInput.type to be nullable for metafieldsSet mutation - 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/updated-metafieldssetinput-type-to-be-nullable-for-metafieldsset-mutation md: >- https://shopify.dev/changelog/updated-metafieldssetinput-type-to-be-nullable-for-metafieldsset-mutation.md metadata: effectiveApiVersion: 2023-01 affectedApi: [] primaryTag: displayName: API handle: api secondaryTag: displayName: Update handle: update indicatesActionRequired: false createdAt: '2022-07-03T23:31:09-04:00' postedAt: '2023-01-01T00:00:00-05:00' updatedAt: '2024-12-13T17:24:34-05:00' effectiveAt: '2023-01-01T00:00:00-05:00' --- January 1, 2023 Tags: * API * 2023-01 # Updated MetafieldsSetInput.type to be nullable for metafieldsSet mutation As part of the **2023-01** GraphQL Admin API release, we've updated the `metafieldsSet` API to make the `MetafieldsSetInput.type` field nullable. When the metafield you are trying to mutate already has corresponding [metafield definitions](https://help.shopify.com/en/manual/metafields/metafield-definitions), you can simplify the mutation by omitting the `type` field from its arguments. The `type` field is still required when the metafield doesn't have a corresponding definition to the given `ownerId`, `namespace` and `key`. For more information, refer to the [metafieldsSet](https://shopify.dev/api/admin-graphql/unstable/mutations/metafieldsSet) mutation.