Anchor to section titled 'undefined'

stagedUploadTargetsGenerate
mutation
deprecated

Uploads multiple images. Use stagedUploadsCreate instead.


The input fields for generating staged uploads.


Was this section helpful?

The staged upload targets that were generated.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation stagedUploadTargetsGenerate($input: [StageImageInput!]!) {
  stagedUploadTargetsGenerate(input: $input) {
    urls {
      # StagedUploadTarget fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "input": [
    {
      "filename": "<your-filename>",
      "httpMethod": "POST",
      "mimeType": "<your-mimeType>",
      "resource": "BULK_MUTATION_VARIABLES"
    }
  ]
}
input StageImageInput {
  filename: String!
  httpMethod: StagedUploadHttpMethodType
  mimeType: String!
  resource: StagedUploadTargetGenerateUploadResource!
}