Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi I am techy savy, but not very code intelligent person. I have used CHATGPT to help me create a python code that archives/drafts products when I enter the sku. It seems like I have gotten almost everything to work, my code even finds the correct item id. But there seems to be an issue with the payload I cannot get past. I continuously get this error in the terminal:
Payload being sent: {'product': {'id': 8047613051133, 'status': 'draft'}}
Failed to set product with SKU: 100075 to draft. Error: {"errors":{"product":"Required parameter missing or invalid"}}
Can anyone help? I assume its something to do with the phrasing of 'product', 'status', or 'draft' but as I said I am not extremely fluent with python so I would not know. Thank you.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024