用于更新指定智能文档中的页面信息,包括标题、布局模式、排序位置等。
请求方式:POST(HTTPS)
请求地址:https://qyapi.weixin.qq.com/cgi-bin/wedoc/smartdoc/update_page?access_token=ACCESS_TOKEN
请求包体
{
"docid": "DOC_ID",
"info": {
"page_id": "PAGE_ID",
"title": "新的页面标题",
"layout_mode": 2,
"after_id": "AFTER_PAGE_ID",
"parent_id": "PARENT_PAGE_ID"
}
}
{
"docid": "DOC_ID",
"info": {
"page_id": "PAGE_ID",
"title": "新标题"
}
}
{
"docid": "DOC_ID",
"info": {
"page_id": "PAGE_ID",
"layout_mode": 3
}
}
{
"docid": "DOC_ID",
"info": {
"page_id": "PAGE_ID",
"parent_id": "NEW_PARENT_PAGE_ID",
"after_id": "AFTER_PAGE_ID"
}
}
参数说明
| 参数 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| docid | string | 是 | 智能文档的文档 id |
| info | PageInfo | 是 | 需要更新的页面信息 |
| info.page_id | string | 是 | 要更新的页面 ID |
| info.title | string | 否 | 新的页面标题 |
| info.layout_mode | uint32 | 否 | 页面布局模式,参见 PageLayoutMode |
| info.after_id | string | 否 | 新的排序位置,表示排在哪个页面之后,为空表示移到最后 |
| info.parent_id | string | 否 | 父页面 ID,用于移动页面到其他父节点下 |
权限说明
返回示例
{
"errcode": 0,
"errmsg": "ok",
"info": {
"page_id": "PAGE_ID",
"title": "新的页面标题",
"layout_mode": 2,
"after_id": "AFTER_PAGE_ID",
"parent_id": "PARENT_PAGE_ID"
}
}
参数说明
| 参数 | 类型 | 说明 |
|---|---|---|
| errcode | int32 | 错误码 |
| errmsg | string | 错误码说明 |
| info | PageInfo | 更新后的页面信息 |
| info.page_id | string | 页面 ID |
| info.title | string | 页面标题 |
| info.layout_mode | uint32 | 页面布局模式 |
| info.after_id | string | 排序位置(在哪个页面之后) |
| info.parent_id | string | 父页面 ID |
