--- title: stagedUploadTargetsGenerate - GraphQL Admin description: Uploads multiple images. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/stageduploadtargetsgenerate md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/stageduploadtargetsgenerate.md --- # staged​Upload​Targets​Generate mutation Deprecated. Use [stagedUploadsCreate](https://shopify.dev/docs/api/admin-graphql/latest/mutations/stagedUploadsCreate) instead. Uploads multiple images. ## Arguments * input [\[Stage​Image​Input!\]!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/StageImageInput) required The input fields for generating staged uploads. *** ## Staged​Upload​Targets​Generate​Payload returns * urls [\[Staged​Upload​Target!\]](https://shopify.dev/docs/api/admin-graphql/latest/objects/StagedUploadTarget) The staged upload targets that were generated. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/UserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### stagedUploadTargetsGenerate reference ## Mutation Reference ```graphql mutation stagedUploadTargetsGenerate($input: [StageImageInput!]!) { stagedUploadTargetsGenerate(input: $input) { urls { # StagedUploadTarget fields } userErrors { field message } } } ``` ## Input ```json { "input": [ { "resource": "COLLECTION_IMAGE", "filename": "", "mimeType": "", "httpMethod": "POST" } ] } ``` ##### Variables ``` { "input": [ { "resource": "COLLECTION_IMAGE", "filename": "", "mimeType": "", "httpMethod": "POST" } ] } ``` ##### Schema ``` input StageImageInput { resource: StagedUploadTargetGenerateUploadResource! filename: String! mimeType: String! httpMethod: StagedUploadHttpMethodType } ```