Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

productVaraintsCreate mediaSrc Qustions

productVaraintsCreate mediaSrc Qustions

weap0n7
Shopify Partner
25 1 2
When registering a product with product Create, the image cannot be registered even though the image path is attached to variables>mediaSrc. I don't know why.
 
 
{
  "input": {
    "bodyHtml""TEST444",
    "collectionsToJoin": [
      "gid://shopify/Collection/459616092460"
    ],
    "collectionsToLeave"null,    
    "descriptionHtml""TEST333",    
    "images": [
      {
        "altText""",        
      }
    ],
    "metafields": [
      {
        "description""",        
        "key""use1",
        "namespace""custom",
        "type""multi_line_text_field",
        "value""META11111"
      }
    ],
    "options": [
      "COLOR","SIZE"
    ],
    "variants": [
      {       
        "compareAtPrice""200",
        "inventoryQuantities": [
          {
            "availableQuantity"11,
            "locationId""gid://shopify/Location/91036582188"
          }
        ],        
        "options": [
          "RED","100"
        ],
        "position"1,
        "price""100",                
        "requiresComponents"true,
        "requiresShipping"true,
        "sku""SKU123123",        
        "taxable"true
      }
    ],
    "productCategory": {
      "productTaxonomyNodeId""gid://shopify/ProductTaxonomyNode/352"
    },    
    "productType""Shoes",                    
    "status""ACTIVE",
    "tags": [
      "tag1","tag2"
    ],    
    "title""two options test11",
    "productPublications": [
      {        
        "channelId""gid://shopify/Channel/199319355692",
        "publicationId""gid://shopify/Publication/199319355692"        
      }
    ]    
  }  
}

 

 

weap0n7_0-1698206802507.png

 

Replies 0 (0)