Skip to main content
input_object

The input fields that are required to update a file object.

•String

The alt text description of the file for screen readers and accessibility.

•String

The name of the file including its extension.

•ID

The ID of the file to be updated.

•String

The source from which to update a media image or generic file. This can be an external URL or a staged upload URL.

•ID

The ID of the parent directory to move the file into. To move a file to the root, use parentDirectoryPath: '/' instead. Cannot be used together with parentDirectoryPath.

•String

The full parent directory path to move the file into (e.g. 'public/assets/images'). Files can only be moved under the default 'public' directory; use 'public' to move to its top most level. Cannot be used together with parentDirectoryId.

•String

The source from which to update the media preview image. May be an external URL or a staged upload URL.

•[ID!]

The IDs of the references to add to the file. Currently only accepts product IDs.

•[ID!]

The IDs of the references to remove from the file. Currently only accepts product IDs.


Was this section helpful?

Anchor to Mutations using this inputMutations using this input


Was this section helpful?