Version: 202201
Create Upload File Task
POST/openapi/2022-01/file
The Create Upload File Task API allows developers to upload files to the server. This endpoint supports uploading multiple files at once.
Request
- application/json
- Body
- Example
Body
original_source_liststring[]required
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"
]
}
Responses
- 200
- 400
- 500
200
- application/json
- Schema
- Example
- Result
Schema
task_idstring
Example:
300b5e33-3ac5-41c5-9819-7e2e8aad6a98{
"task_id": "300b5e33-3ac5-41c5-9819-7e2e8aad6a98"
}
{
"task_id": "300b5e33-3ac5-41c5-9819-7e2e8aad6a98"
}
400
- application/json
- Schema
- Example
- Result
Schema
msgstring
Example:
request status not okstatusinteger
Default value:
0Example:
400{
"msg": "request status not ok",
"status": 400
}
{
"msg": "request status not ok",
"status": 400
}
500
- application/json
- Schema
- Example
- Result
Schema
msgstring
Example:
Internal Server Error{
"msg": "Internal Server Error"
}
{
"msg": "Internal Server Error"
}