有人能告诉我我做错了什么吗?我的 JSON 数据是这样的:
{"product_id":512,"image_file":"http://wwww.mydomain.com/cdn/images/9789490693718.jpg"}
我通过 POST 请求将此数据发布到:
https://my-demo-store.mybigcommerce.com/api/v2/products/512/images.json
我遇到这样的错误:
[{"status":400,"message":"The JSON content provided as input is invalid. Please check your JSON syntax before trying again."}]
我做错了什么?
亲切的问候 迈克尔
最佳答案
"product_id:"
是只读的。 (不要将其包含在您的 JSON 数据中)image_file
将链接到 POST 请求中使用的 ID。
关于json - 通过 json 查询将图片上传到 BigCommerce,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18638790/