當我通過使用以下JSON通過Shopify product update API(https://ashop.myshopify.com/admin/products/product_id.json PUT)將published_at設置爲日期。通過Shopify API設置產品發佈日期無法正常工作
{
"product": {
"id": 632910392,
"published": false,
"published_at": "2015-01-01T00:00:00+11:00"
}
}
它退回200及以下JSON
{
"product": {
"body_html": "something",
"created_at": "2014-01-07T14:49:00+11:00",
"handle": "test-product",
"id": 206281997,
"product_type": "MERCHANDISE",
"published_at": "2015-01-01T00:00:00+11:00",
"published_scope": "",
},
/* some other JavaScript properties*/
}
Shopify接受了公佈日期,但該產品仍然可見。以下是產品的知名度
的截圖但是,如果我刪除「published_at」:「2015-01-01T00:00:00 + 11:00」從請求JSON,產品改爲隱藏。
如何通過Shopify API設置發佈日期? Shopify API的錯誤是否可能?
感謝您的幫助。