Version: 202201
Get Upload File Task
GET/openapi/2022-01/file/task/:task_id
The Get Upload File Task API retrieves the status and details of an upload task that was previously created using the task_id. It provides information about the task's progress, the number of files processed, and the results (success and failure lists)
Request
Path Parameters
task_id stringrequired
The unique identifier for the upload task.
Responses
- 200
- 400
- 404
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- ]
- Array [
- ]
task_idstring
Example:
300b5e33-3ac5-41c5-9819-7e2e8aad6a98totalinteger
Default value:
0Example:
1finishedinteger
Default value:
0Example:
1statusinteger
Default value:
0Example:
0success_list object[]
file_uristring
Example:
652c51e6ea5273f8e0b5c3a30b62fd57.jpegorigin_linkstring
Example:
https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18bupload_linkstring
Example:
https://cdn.shoplazza.com/652c51e6ea5273f8e0b5c3a30b62fd57.jpegfailure_list object[]
object
origin_liststring[]
{
"task_id": "300b5e33-3ac5-41c5-9819-7e2e8aad6a98",
"total": 1,
"finished": 1,
"status": 0,
"success_list": [
{
"file_uri": "652c51e6ea5273f8e0b5c3a30b62fd57.jpeg",
"origin_link": "https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b",
"upload_link": "https://cdn.shoplazza.com/652c51e6ea5273f8e0b5c3a30b62fd57.jpeg"
}
],
"failure_list": [
{}
],
"origin_list": [
"https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b"
]
}
{
"task_id": "300b5e33-3ac5-41c5-9819-7e2e8aad6a98",
"total": 1,
"finished": 1,
"status": 0,
"success_list": [
{
"file_uri": "652c51e6ea5273f8e0b5c3a30b62fd57.jpeg",
"origin_link": "https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b",
"upload_link": "https://cdn.shoplazza.com/652c51e6ea5273f8e0b5c3a30b62fd57.jpeg"
}
],
"failure_list": [],
"origin_list": [
"https://picx.zhimg.com/v2-3b4fc7e3a1195a081d0259246c38debc_720w.jpg?source=172ae18b"
]
}
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
}
404
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"data is null"
]
}
{
"errors": [
"data is null"
]
}