stagedUploadTargetGenerate mutation
Deprecation warning
Use stagedUploadsCreate
instead
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
Argument | Description |
---|---|
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!
) RequiredThe filename of the asset being uploaded.
-
httpMethod (
StagedUploadHttpMethodType
)The HTTP method to be used by the staged upload.
-
mimeType (
String!
) RequiredThe MIME type of the asset being uploaded.
-
resource (
StagedUploadTargetGenerateUploadResource!
) RequiredThe resource type being uploaded.
Return fields
-
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.
Deprecation warning
Use stagedUploadsCreate
instead
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
Argument | Description |
---|---|
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!
) RequiredThe filename of the asset being uploaded.
-
httpMethod (
StagedUploadHttpMethodType
)The HTTP method to be used by the staged upload.
-
mimeType (
String!
) RequiredThe MIME type of the asset being uploaded.
-
resource (
StagedUploadTargetGenerateUploadResource!
) RequiredThe resource type being uploaded.
Return fields
-
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.
Deprecation warning
Use stagedUploadsCreate
instead
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
Argument | Description |
---|---|
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!
) RequiredThe filename of the asset being uploaded.
-
httpMethod (
StagedUploadHttpMethodType
)The HTTP method to be used by the staged upload.
-
mimeType (
String!
) RequiredThe MIME type of the asset being uploaded.
-
resource (
StagedUploadTargetGenerateUploadResource!
) RequiredThe resource type being uploaded.
Return fields
-
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.
Deprecation warning
Use stagedUploadsCreate
instead
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
Argument | Description |
---|---|
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!
) RequiredThe filename of the asset being uploaded.
-
httpMethod (
StagedUploadHttpMethodType
)The HTTP method to be used by the staged upload.
-
mimeType (
String!
) RequiredThe MIME type of the asset being uploaded.
-
resource (
StagedUploadTargetGenerateUploadResource!
) RequiredThe resource type being uploaded.
Return fields
-
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.
Deprecation warning
Use stagedUploadsCreate
instead
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
Argument | Description |
---|---|
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!
) RequiredThe filename of the asset being uploaded.
-
httpMethod (
StagedUploadHttpMethodType
)The HTTP method to be used by the staged upload.
-
mimeType (
String!
) RequiredThe MIME type of the asset being uploaded.
-
resource (
StagedUploadTargetGenerateUploadResource!
) RequiredThe resource type being uploaded.
Return fields
-
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.
Deprecation warning
Use stagedUploadsCreate
instead
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
Argument | Description |
---|---|
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!
) RequiredThe filename of the asset being uploaded.
-
httpMethod (
StagedUploadHttpMethodType
)The HTTP method to be used by the staged upload.
-
mimeType (
String!
) RequiredThe MIME type of the asset being uploaded.
-
resource (
StagedUploadTargetGenerateUploadResource!
) RequiredThe resource type being uploaded.
Return fields
-
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.
Deprecation warning
Use stagedUploadsCreate
instead
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
Argument | Description |
---|---|
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!
) RequiredThe filename of the asset being uploaded.
-
httpMethod (
StagedUploadHttpMethodType
)The HTTP method to be used by the staged upload.
-
mimeType (
String!
) RequiredThe MIME type of the asset being uploaded.
-
resource (
StagedUploadTargetGenerateUploadResource!
) RequiredThe resource type being uploaded.
Return fields
-
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.
Deprecation warning
Use stagedUploadsCreate
instead
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
Argument | Description |
---|---|
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!
) RequiredThe filename of the asset being uploaded.
-
httpMethod (
StagedUploadHttpMethodType
)The HTTP method to be used by the staged upload.
-
mimeType (
String!
) RequiredThe MIME type of the asset being uploaded.
-
resource (
StagedUploadTargetGenerateUploadResource!
) RequiredThe resource type being uploaded.
Return fields
-
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.
Deprecation warning
Use stagedUploadsCreate
instead
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
Argument | Description |
---|---|
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!
) RequiredThe filename of the asset being uploaded.
-
httpMethod (
StagedUploadHttpMethodType
)The HTTP method to be used by the staged upload.
-
mimeType (
String!
) RequiredThe MIME type of the asset being uploaded.
-
resource (
StagedUploadTargetGenerateUploadResource!
) RequiredThe resource type being uploaded.
Return fields
-
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.
Deprecation warning
Use stagedUploadsCreate
instead
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
Argument | Description |
---|---|
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!
) RequiredThe filename of the asset being uploaded.
-
httpMethod (
StagedUploadHttpMethodType
)The HTTP method to be used by the staged upload.
-
mimeType (
String!
) RequiredThe MIME type of the asset being uploaded.
-
resource (
StagedUploadTargetGenerateUploadResource!
) RequiredThe resource type being uploaded.
Return fields
-
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.