Skip to main content
POST
Upload Product Media
V2 Preview — This endpoint is part of the V2 API preview. Breaking changes may occur.

Overview

Upload media to Shopify staging for later use in product creation. Returns a staged upload URL, HTTP parameters to POST the binary to, and a resourceUrl that can be passed into subsequent productSet calls.

Request Body

See ProductMediaUploadRequest in the OpenAPI spec. Typical fields:
string
required
string
required
E.g. image/png, image/jpeg, video/mp4.
string
required
Shopify resource type — usually IMAGE or VIDEO.
string
Size in bytes (some MIME types require this).

Response

200

Example