StagedUploadTargetGenerateInput input object

Version 2020-07 (Release candidate)

Specifies the fields required to generate the URL and parameters needed to upload an asset to Shopify.

Input 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.

Version 2020-04 (Latest)

Specifies the fields required to generate the URL and parameters needed to upload an asset to Shopify.

Input 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.

Version 2020-01

Specifies the fields required to generate the URL and parameters needed to upload an asset to Shopify.

Input 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.

Version 2019-10

Specifies the fields required to generate the URL and parameters needed to upload an asset to Shopify.

Input 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.

Version 2019-07

Specifies the fields required to generate the URL and parameters needed to upload an asset to Shopify.

Input 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.

Version 2019-04

Specifies the fields required to generate the URL and parameters needed to upload an asset to Shopify.

Input 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.