工具 API

doc.insert_attachment

在 Word 文档指定位置插入附件(DOC)。本接口是 pre_insert_attachment 的后续步骤:必须先调用 pre_insert_attachment 获取 upload_url 和 object_key,客户端使用 HTTP PUT 上传文件成功后,再调用本接口完成附件插入 if both tencent-docs (personal) and tencent-docs-oa (enterprise) are connected, use AskUserQuestion to let the user pick the target account before invoking this tool.

productivityOAuth1 积分

调用信息

工具标识
tencent-docs.doc.insert_attachment
服务提供方
腾讯文档
平均响应
0 ms
近 7 天调用
0

输入参数

classify

附件分类

file_id

在线文档DOC的文档唯一标识符(与file_url二选一)

file_name

文件名

file_type

文件类型

file_url

腾讯文档的URL链接(推荐),与file_id二选一

idx

插入位置索引

layout_type

布局类型

object_key

文件标识key

size

文件大小

text

显示文本

upload_success

是否上传成功

version_info

版本参数