Error
A valid request URL is required to generate request examples{
"__typename": "MediaImage",
"id": "<string>",
"fileStatus": "<string>",
"fileErrors": [
{
"code": "<string>",
"details": "<string>",
"message": "<string>"
}
],
"mediaContentType": "<string>",
"alt": "<string>",
"image": {
"altText": "<string>",
"height": 123,
"id": "<string>",
"url": "<string>",
"width": 123
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}API Reference
Upload an image or video file to the merchant's Shopify Files
Streams one multipart file into Shopify Files (staged upload, fileCreate), waits until Shopify has processed it, and returns the file node, whose id a content block then references. Side effects: creates a Shopify file in this store, and in every multi-store sibling linked through collection_id; nothing is rolled back if one store fails. Images and videos only; Shopify’s size caps apply. Can take tens of seconds for a video.
POST
/
media
/
{merchant_id}
/
upload
Error
A valid request URL is required to generate request examples{
"__typename": "MediaImage",
"id": "<string>",
"fileStatus": "<string>",
"fileErrors": [
{
"code": "<string>",
"details": "<string>",
"message": "<string>"
}
],
"mediaContentType": "<string>",
"alt": "<string>",
"image": {
"altText": "<string>",
"height": 123,
"id": "<string>",
"url": "<string>",
"width": 123
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Path Parameters
Query Parameters
Body
multipart/form-data
Response
The file as Shopify holds it once processed (this store's copy): a MediaImage or a Video.
- Option 1
- Option 2
Was this page helpful?

