An example of creating product in the docs doesn't work correctly

Solved
zhagan
Excursionist
17 1 0

I tested the following api , and find the no image were created in the prodcut.

Snipaste_2021-05-11_01-15-59.png

 

Request:  

POST /admin/api/2021-04/products.json

 

{
  "product": {
    "title": "111Burton Custom Freestyle 151",
    "body_html": "<strong>Good snowboard!</strong>",
    "vendor": "Burton",
    "product_type": "Snowboard",
    "images": [
      {
        "src": "https://ae01.alicdn.com/kf/H15e5d90bbd0a4f2f84ef6d943de44575F.jpg"
      }
    ]
  }
}

 

 

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
310 42 53

Hey @zhagan 

Can you provide the x-request-id response header for that request? 

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
zhagan
Excursionist
17 1 0

This is an accepted solution.

@Kevin_A  it works correctly now,  thank you very much

0 Likes