TOOL API

manage.pre_import

Prepares a document import by returning a COS upload URL, file_key and task_id for the given file name, size and MD5. Workflow: call this tool, PUT the file to upload_url with curl, then call manage.async_import with file_size, task_id, file_key, file_name and file_md5 to start the import, and poll manage.import_progress for status. 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 credits

Call information

Tool slug
tencent-docs.manage.pre_import
Provider
Tencent Docs
Average response
0 ms
Calls in 7 days
0

Input parameters

file_md5required

文件的MD5哈希值,hex编码的32位小写字符串,如'd41d8cd98f00b204e9800998ecf8427e'

file_namerequired

文件名称(含后缀),不能为空且必须包含文件扩展名

file_sizerequired

文件大小,单位为字节(bytes),必须大于 0,例如 36752