alibaba.gpu.schema.update (产品更新接口)

产品更新接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
product_id Number 必须 123456 产品ID
schema_xml_fields String 必须 <itemRule><field id="prop_20000" name="品牌" type="singleCheck"><value>-1</value></field><field id="in_prop_20000" name="品牌" type="input"><value>23区</value></field> 更新产品提交的schema数据
provider_id Number 必须 0 当前用户所在渠道如0代表天猫,8代表淘宝

响应参数

名称 类型 示例值 描述
update_product_result String <itemrule><field id="product_id" name="产品ID" type="input">1221</field><itemrule> 更新产品的结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaGpuSchemaUpdateRequest req = new AlibabaGpuSchemaUpdateRequest();
req.setProductId(123456L);
req.setSchemaXmlFields("<itemRule><field id=\"prop_20000\" name=\"品牌\" type=\"singleCheck\"><value>-1</value></field><field id=\"in_prop_20000\" name=\"品牌\" type=\"input\"><value>23区</value></field>");
req.setProviderId(0L);
AlibabaGpuSchemaUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_gpu_schema_update_response>
    <update_product_result>&lt;itemrule&gt;&lt;field id=&quot;product_id&quot; name=&quot;产品ID&quot; type=&quot;input&quot;&gt;1221&lt;/field&gt;&lt;itemrule&gt;</update_product_result>
</alibaba_gpu_schema_update_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部