where to find mediaIds?

Highlighted
Shopify Partner
18 0 1

I m trying to delete a media via productDeleteMedia

 

 

mutation productReorderImages($id: ID!, $moves: [MoveInput!]!) {
  productReorderImages(id: $id, moves: $moves) {
    job {
      id
    }
    userErrors {
      field
      message
    }
  }
}

I need an input which is 

{
  "productId": "Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE=",
  "mediaIds": [
    "Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE="
  ]
}

But there is no mediaIds found anywhere.

 

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
495 97 88

Hi @Nathanhahaha 

Have you gone through the tutorial here: https://shopify.dev/tutorials/manage-product-media-with-admin-api This explains how to structure the array. You can see in the response from creating the media or retriving. 

Vix | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 


0 Likes