Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
POST /api/v1/batch/{LibraryId}/{SpaceId}?delete&access_token={AccessToken}&user_id={UserId}
Request parameters. | Description | Type | Required or Not |
LibraryId | Media Library ID, obtained after creating a media library in the media hosting console. See Create Media Library | String | Yes |
SpaceId | Space ID. If the media library is in single-tenant mode, this parameter is fixed as a hyphen (-); if the media library is in multi-tenant mode, you must specify this parameter. | String | Yes |
AccessToken | Access token, see Generate Access Token | String | Yes |
UserId | User identity recognition. When the access token corresponds to administrator permissions and the user identity recognition during token application is empty, it is used to temporarily specify user identity. For details, see Generate Access Token. | String | No |
[{"path": "foo/bar"},{"path": "foo/1.jpg"},{"path": "foo/2.jpg","permanent": true}]
Request parameters. | Description | Type | Required or Not |
path | Deleted directory, album, or file path | String | Yes |
permanent | When the recycle bin is enabled, this parameter specifies whether to move the file to the Recycle Bin or permanently delete the file. It is false by default and includes the following options: Permanently delete false: Move to Recycle Bin | Boolean | No |
{"result": [{"status": 200,"recycledItemId": 123,"path": [ "foo", "bar" ]},{"status": 200,"recycledItemId": 124,"path": [ "foo", "1.jpg" ]},{"status": 204,"path": [ "foo", "2.jpg" ]}]}
{ "taskId": 15 }
[{"taskId": 15,"status": 200,"result": [{"status": 200,"recycledItemId": 123,"path": [ "foo", "bar" ]},{"status": 200,"recycledItemId": 124,"path": [ "foo", "1.jpg" ]},{"status": 204,"path": [ "foo", "2.jpg" ]}]}]
Response Parameters | Description | Type |
result.status | Deletion result of individual item 200: Deleted successfully when conflictResolutionStrategy is rename 204: Deleted successfully when conflictResolutionStrategy is ask or overwrite 403/404/409/500: Delete failed | String |
result.recycledItemId | Recycle bin project ID, used to permanently delete or restore a designated project from the recycle bin | Int |
result.path | When making a request, the corresponding path passed in array format | String Array |
taskId | Task ID when deleting asynchronously can be used to query task status via the Query Task API. | Int |
Response Parameters | Description | Type |
status | Query task status. 202: task in progress 200: all executed successfully 207: part or all execution failed | String |
フィードバック