版本:202201
创建文件上传任务
POST/openapi/2022-01/file
创建异步文件上传任务,支持批量上传。
请求
- application/json
- 请求体
- 示例
请求体
original_source_liststring[]必填
A list of original file URLs to be uploaded. Each URL must be a valid link pointing to a file to process.Original source list, picture link, for example: ["https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b"]
{
"original_source_list": [
"string"
]
}
响应
- 200
- 400
- 500
200
- application/json
- 数据结构
- 示例
- Result
数据结构
task_idstring
示例:
300b5e33-3ac5-41c5-9819-7e2e8aad6a98{
"task_id": "300b5e33-3ac5-41c5-9819-7e2e8aad6a98"
}
{
"task_id": "300b5e33-3ac5-41c5-9819-7e2e8aad6a98"
}
400
- application/json
- 数据结构
- 示例
- Result
数据结构
msgstring
示例:
request status not okstatusinteger
默认值:
0示例:
400{
"msg": "request status not ok",
"status": 400
}
{
"msg": "request status not ok",
"status": 400
}
500
- application/json
- 数据结构
- 示例
- Result
数据结构
msgstring
示例:
Internal Server Error{
"msg": "Internal Server Error"
}
{
"msg": "Internal Server Error"
}