Canceling a Parsing Task
Function
Canceling a Parsing Task
URI
PUT /v1/koosearch/doc-search/tasks/cancel
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
- |
No |
String |
Batch task deletion request |
tasks |
Yes |
Array of strings |
ID list of files to cancel |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
[items] |
Array of QueryTaskStatusResult objects |
Parameter |
Type |
Description |
---|---|---|
task_id |
String |
Task ID |
status |
String |
Task status |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
|
error_msg |
String |
Error description |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
|
error_msg |
String |
Error description |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
|
error_msg |
String |
Error description |
Example Requests
List of task IDs
/v1/koosearch/doc-search/tasks/cancel { "tasks" : [ "7a42c11f79a74fedacbe706f4b9f4073" ] }
Example Responses
Status code: 200
Task query response body
[ { "task_id" : "47436b8dbd5e4742b992e5e9edca8a5a", "status" : "SUCCESS" } ]
Status Codes
Status Code |
Description |
---|---|
200 |
Task query response body |
400 |
Invalid request parameters |
401 |
Authentication error |
500 |
Service content error |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot