文档中心 > API类目 > 淘宝小程序API

taobao.smartapp.table.data.update (智能应用工作表数据更新)

智能应用工作表数据更新

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
app_id Number 必须 21626 智能应用ID
table_id String 必须 work-table-test1 工作表ID
id String 必须 ZkhiSEdHQnVDS3lmdDc1YjRnb01BZz09 需变更的数据ID
record String 必须 {"contactInformation": "测试测试"} 需变更的数据

响应参数

名称 类型 示例值 描述
count Number 1 更新记录数

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
SmartappTableDataUpdateRequest req = new SmartappTableDataUpdateRequest();
req.setAppId(21626L);
req.setTableId("work-table-test1");
req.setId("ZkhiSEdHQnVDS3lmdDc1YjRnb01BZz09");
req.setRecord("{\"contactInformation\": \"测试测试\"}");
SmartappTableDataUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<smartapp_table_data_update_response>
    <count>1</count>
</smartapp_table_data_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>

错误码解释

错误码 错误描述 解决方案
isp.ability.execute-error 系统开小差了,请稍后重试 检查出入参正确性

API工具

如何获得此API

FAQ

返回
顶部