Cancel resource import task
1. API Description
This API is used to cancel a resource import task.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/source/cancel-import-source-task
- V2.5.0 and below: POST [ip]/mwapi/cancel-import-source-task
| Administrator Rights | Logged-in |
|---|---|
| No | Yes |
2. Input Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| fileName | Yes | String | File name |
| md5 | Yes | String | MD5 value of the file |
| sourceType | Yes | Int | Type of resource 1: Picture; 2: Video; 6: Music; 13: PDF; 14: Web page |
3. Output Parameters
| Name | Type | Description |
|---|---|---|
| status | Int | Status code |
| message | String | Status description |
4. Example
Canceling importing an audio file.
Input Example
{
"fileName": "demo.mp4",
"md5": "asdfghjklkjhgfdsdfghjk",
"sourceType": 6
}
Output Example
{
"message":"success",
"result":0
}
5. Error Code
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Status | Definition | Description |
|---|---|---|
| 7 | MW_STATUS_INVALID_ARG | Missing required parameters |