Skip to main content
object

Requires read_files access scope, read_themes access scope or read_images access scope.

An error that happens during the execution of a Files API query or mutation.

•FilesErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!non-null

The error message.


Was this section helpful?

•mutation

Acknowledges file update failure by resetting FAILED status to READY and clearing any media errors.

Arguments

•[ID!]!required

Specifies the file(s) to acknowledge the failed updates of.


Fields

•[File!]

The updated file(s).

•[FilesUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Creates file assets using an external URL or for files that were previously uploaded using the stagedUploadsCreate mutation. These files are added to the Files page in Shopify admin.

Files are processed asynchronously. Some data is not available until processing is completed. Check fileStatus to know when the files are READY or FAILED. See the FileStatus for the complete set of possible fileStatus values.

To get a list of all files, use the files query.

Arguments

•[FileCreateInput!]!required

List of new files to be created.


Fields

•[File!]

The newly created files.

•[FilesUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Deletes existing file assets that were uploaded to Shopify.

Arguments

•[ID!]!required

The IDs of the files to be deleted.


Fields

•[ID!]

The IDs of the deleted files.

•[FilesUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Updates an existing file asset that was uploaded to Shopify.

Arguments

•[FileUpdateInput!]!required

List of files to be updated.


Fields

•[File!]

The list of updated files.

•[FilesUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?