stagedUploadsCreate mutation

Version 2020-04 (Release candidate)

Creates staged upload target URLs for each input and is the first step in the upload process. The returned upload targets with URLs can be used as endpoints to upload the files.

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 ( [StagedUploadInput!]! ) required

Input for the mutation includes information needed to generate staged upload targets.

StagedUploadInput fields

fileSize (UnsignedInt64)

Size of the file to upload, in bytes. This is required for VIDEO and MODEL_3D resources.

filename (String!) Required

Media filename.

httpMethod (StagedUploadHttpMethodType)

HTTP method to be used by the Staged Upload.

mimeType (String!) Required

Media MIME type.

resource (StagedUploadTargetGenerateUploadResource!) Required

Media resource.

Return fields

stagedTargets ([StagedMediaUploadTarget!])

The staged upload targets that were generated.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2020-01 (Latest)

Creates staged upload target URLs for each input and is the first step in the upload process. The returned upload targets with URLs can be used as endpoints to upload the files.

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 ( [StagedUploadInput!]! ) required

Input for the mutation includes information needed to generate staged upload targets.

StagedUploadInput fields

fileSize (UnsignedInt64)

Size of the file to upload, in bytes. This is required for VIDEO and MODEL_3D resources.

filename (String!) Required

Media filename.

httpMethod (StagedUploadHttpMethodType)

HTTP method to be used by the Staged Upload.

mimeType (String!) Required

Media MIME type.

resource (StagedUploadTargetGenerateUploadResource!) Required

Media resource.

Return fields

stagedTargets ([StagedMediaUploadTarget!])

The staged upload targets that were generated.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.