Create staged upload targets

Mirrors Admin GraphQL stagedUploadsCreate. Step 1 of 3 for putting a local file on a product without base64 — the bytes go directly into Shopify's own storage.

Body: { input: StagedUploadInput[] }, each entry { filename, mimeType, resource, httpMethod?, fileSize? }. resource is IMAGE, VIDEO, FILE or MODEL_3D; fileSize is REQUIRED for VIDEO and MODEL_3D and Shopify rejects the call without it. httpMethod defaults to PUT.

Step 2 — PUT the bytes to stagedTargets[].url (curl -T ./cover.png "<url>"). Ask for POST instead and Shopify returns a parameters array you must replay as multipart form fields, which is strictly more work.

Step 3 — pass stagedTargets[].resourceUrl as originalSource to /products/{productId}/media. Pass resourceUrl, not url: url is where bytes go, resourceUrl is Shopify's handle for the stored file.

  • Write — needs a write-scoped token.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
uuid
required

The Analify organization whose connected account to use.

Body Params
Responses
200

OK — stagedUploadsCreate.stagedTargets[] with url, resourceUrl and parameters.

Language
Credentials
Bearer
anlfy_...
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json