Magento的REST API错误失踪media_gallery [英] Magento Rest API Error missing media_gallery

查看:119
本文介绍了Magento的REST API错误失踪media_gallery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了设立Magento的REST API,并能够获取产品的列表,而无需使用API​​示例code的Magento提供任何错误。然而,当我尝试使用在创建的http://www.magentocommerce.com/api/rest/introduction.html#RESTAPIIntroduction-Overview
我得到下面的错误。

I have completed setting up the Magento Rest API and been able to retrieve a list of product without any errors using the API Example code Magento provides. However when I try to use the create a simple product example provided at http://www.magentocommerce.com/api/rest/introduction.html#RESTAPIIntroduction-Overview I get the below error.

{消息:{错误:[{code:400,消息:缺少\\media_gallery \\中要求}

{"messages":{"error":[{"code":400,"message":"Missing \"media_gallery\" in request."}

我到处找,似乎无法找出如何修正这个错误。我没有看到任何参考这里的http://www.magentocommerce.com/api/rest/Resources/Products/products.html#RESTAPI-Resource-Products-HTTPMethod-POST-products说media_gallery需要的要求。

I have looked everywhere and can't seem to find out how to fix the error. I don't see any reference here http://www.magentocommerce.com/api/rest/Resources/Products/products.html#RESTAPI-Resource-Products-HTTPMethod-POST-products saying media_gallery is required in the request.

任何人都可以揭示出这个错误一些光,以及如何解决它?

Can anyone shed some light on this error and how to fix it?

推荐答案

我一直在寻找,最多为好,但你总是可以修改该属性在Magento的管理,只是将其关闭(目录/属性/管理属性) ,如让它不是必需的。

I've been looking that up as well, but you can always modify that attribute in magento's administration and just turn it off (catalog/attributes/manage attributes), as in make it NOT required.

干杯

这篇关于Magento的REST API错误失踪media_gallery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆