API version: unstable
API version: 2021-01 Release candidate
API version: 2020-10 Latest
API version: 2020-07
API version: 2020-04
API version: 2020-01
API version: 2019-10 Unsupported
API version: 2019-07 Unsupported

StagedUploadTargetGenerateInput input object

Version 2021-01 (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-10 (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-07

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

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 (Unsupported)

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 (Unsupported)

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 (Unsupported)

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.