stagedUploadTargetGenerate mutation

Version 2020-04 (Release candidate)

Generates the URL and signed paramaters needed to upload an asset to Shopify.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( StagedUploadTargetGenerateInput! ) required

The input fields for generating a staged upload.

StagedUploadTargetGenerateInput fields

fileSize (UnsignedInt64)

The size of the file to upload, in bytes.

filename (String!) Required

The filename of the asset being uploaded.

httpMethod (StagedUploadHttpMethodType)

The HTTP method to be used by the staged upload.

mimeType (String!) Required

The MIME type of the asset being uploaded.

resource (StagedUploadTargetGenerateUploadResource!) Required

The resource type being uploaded.

Return fields

parameters ([MutationsStagedUploadTargetGenerateUploadParameter!]!)

The signed parameters that can be used to upload the asset.

url (String!)

The signed URL where the asset can be uploaded.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2020-01 (Latest)

Generates the URL and signed paramaters needed to upload an asset to Shopify.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( StagedUploadTargetGenerateInput! ) required

The input fields for generating a staged upload.

StagedUploadTargetGenerateInput fields

fileSize (UnsignedInt64)

The size of the file to upload, in bytes.

filename (String!) Required

The filename of the asset being uploaded.

httpMethod (StagedUploadHttpMethodType)

The HTTP method to be used by the staged upload.

mimeType (String!) Required

The MIME type of the asset being uploaded.

resource (StagedUploadTargetGenerateUploadResource!) Required

The resource type being uploaded.

Return fields

parameters ([MutationsStagedUploadTargetGenerateUploadParameter!]!)

The signed parameters that can be used to upload the asset.

url (String!)

The signed URL where the asset can be uploaded.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2019-10

Generates the URL and signed paramaters needed to upload an asset to Shopify.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( StagedUploadTargetGenerateInput! ) required

The input fields for generating a staged upload.

StagedUploadTargetGenerateInput fields

filename (String!) Required

The filename of the asset being uploaded.

httpMethod (StagedUploadHttpMethodType)

The HTTP method to be used by the staged upload.

mimeType (String!) Required

The MIME type of the asset being uploaded.

resource (StagedUploadTargetGenerateUploadResource!) Required

The resource type being uploaded.

Return fields

parameters ([MutationsStagedUploadTargetGenerateUploadParameter!]!)

The signed parameters that can be used to upload the asset.

url (String!)

The signed URL where the asset can be uploaded.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2019-07

Generates the URL and signed paramaters needed to upload an asset to Shopify.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( StagedUploadTargetGenerateInput! ) required

The input fields for generating a staged upload.

StagedUploadTargetGenerateInput fields

filename (String!) Required

The filename of the asset being uploaded.

httpMethod (StagedUploadHttpMethodType)

The HTTP method to be used by the staged upload.

mimeType (String!) Required

The MIME type of the asset being uploaded.

resource (StagedUploadTargetGenerateUploadResource!) Required

The resource type being uploaded.

Return fields

parameters ([MutationsStagedUploadTargetGenerateUploadParameter!]!)

The signed parameters that can be used to upload the asset.

url (String!)

The signed URL where the asset can be uploaded.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2019-04

Generates the URL and signed paramaters needed to upload an asset to Shopify.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( StagedUploadTargetGenerateInput! ) required

The input fields for generating a staged upload.

StagedUploadTargetGenerateInput fields

filename (String!) Required

The filename of the asset being uploaded.

httpMethod (StagedUploadHttpMethodType)

The HTTP method to be used by the staged upload.

mimeType (String!) Required

The MIME type of the asset being uploaded.

resource (StagedUploadTargetGenerateUploadResource!) Required

The resource type being uploaded.

Return fields

parameters ([MutationsStagedUploadTargetGenerateUploadParameter!]!)

The signed parameters that can be used to upload the asset.

url (String!)

The signed URL where the asset can be uploaded.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.