用于更新指定智能文档中的数据表关联信息。
请求方式:POST(HTTPS)
请求地址:https://qyapi.weixin.qq.com/cgi-bin/wedoc/smartdoc/update_smartsheet?access_token=ACCESS_TOKEN
请求包体
{
"docid": "DOC_ID",
"info": {
"block_id": "BLOCK_ID",
"title": "新的数据表标题",
"after_id": "数据表的block_id"
}
}
参数说明
| 参数 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| docid | string | 是 | 智能文档的文档 id |
| info | object | 是 | 数据表信息 |
| info.block_id | string | 是 | 要更新的 Block ID |
| info.title | string | 否 | 数据表标题 |
| info.after_id | string | 否 | 数据表的block_id。新的排序位置,表示排在哪个 Block 之后,为空表示移到最后。不支持非数据表类型的block_id |
权限说明
{
"errcode": 0,
"errmsg": "ok",
"info": {
"block_id": "BLOCK_ID",
"title": "数据表标题",
"sheet_id": "数据表sheet_id",
"ss_docid": "智能文档docid",
"after_id": "BLOCK_ID"
}
}
| 参数 | 类型 | 说明 |
|---|---|---|
| errcode | int32 | 错误码 |
| errmsg | string | 错误码说明 |
| info | object | 更新成功后返回的数据表信息 |
| info.block_id | string | Block ID |
| info.title | string | 数据表标题 |
| info.sheet_id | string | 数据表 sheet_id |
| info.ss_docid | string | 智能文档 docid |
| info.after_id | string | 排序位置(在哪个 Block 之后) |
{
"docid": "smartdoc_doc_001",
"info": {
"block_id": "block_123",
"title": "更新后的标题"
}
}
{
"docid": "smartdoc_doc_001",
"info": {
"block_id": "block_123",
"after_id": "block_456"
}
}
