Skip to main content
Anchor to StagedMediaUploadTarget

StagedMediaUploadTarget

object

Information about a staged upload target, which should be used to send a request to upload the file.

For more information on the upload process, refer to Upload media to Shopify.

•[StagedUploadParameter!]!non-null

Parameters needed to authenticate a request to upload the file.

•URL

The URL to be passed as originalSource in CreateMediaInput and FileCreateInput for the productCreateMedia and fileCreate mutations.

•URL

The URL to use when sending an request to upload the file. Should be used in conjunction with the parameters field.


Was this section helpful?

•mutation

Creates staged upload targets for each input. This is the first step in the upload process. The returned staged upload targets' URL and parameter fields can be used to send a request to upload the file described in the corresponding input.

For more information on the upload process, refer to Upload media to Shopify.

Arguments

•[StagedUploadInput!]!required

The information required to generate staged upload targets.


Fields

•[StagedMediaUploadTarget!]

The staged upload targets that were generated.

•[UserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?