Anchor to stagedUploadTargetsGeneratestaged
stagedUploadTargetsGenerate
mutationDeprecated
Uploads multiple images. Use instead.
Anchor to Arguments
Arguments
- Anchor to inputinput•[Stage
Image requiredInput!]! The input fields for generating staged uploads.
Was this section helpful?
Anchor to StagedUploadTargetsGeneratePayload returnsStagedUploadTargetsGeneratePayload returns
- Anchor to urlsurls•
The staged upload targets that were generated.
- Anchor to userErrorsuser•
Errors [UserError!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation stagedUploadTargetsGenerate($input: [StageImageInput!]!) {2 stagedUploadTargetsGenerate(input: $input) {3 urls {4 # StagedUploadTarget fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "input": [3 {4 "filename": "<your-filename>",5 "httpMethod": "",6 "mimeType": "<your-mimeType>",7 "resource": ""8 }9 ]10}
{
"input": [
{
"filename": "<your-filename>",
"httpMethod": "",
"mimeType": "<your-mimeType>",
"resource": ""
}
]
}
input StageImageInput {
filename: String!
httpMethod: StagedUploadHttpMethodType
mimeType: String!
resource: StagedUploadTargetGenerateUploadResource!
}