Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
POST /api/v1/recycled/{LibraryId}/{SpaceId}?restore&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. Please refer to Create Media Library | String | Yes |
SpaceId | Space ID. If the media library is in single-tenant mode, this parameter is fixed as hyphen (`-`); if the media library is in multi-tenant mode, you must specify this parameter. See Create Tenant Space | String | No |
AccessToken | Access token. See Generate Access Token | String | Yes |
UserId | User identity recognition. When the access token has admin permission and user identity recognition is empty when applying for access, it is used to temporarily specify user identity. For details, see Generate Access Token API | String | No |
RestorePathStrategy | Restoration project source path processing method, defaults to originalPath, includes the following content: Restore to original path. Error will be reported if original path does not exist. fallbackToRoot: restore to original path, restore to root directory if original path not found | String | No |
[ 1, 2, 3, 4, 5 ]
{"result": [{"status": 200,"path": [ "foo", "bar", "file (1).docx" ],"recycledItemId": 1},{"status": 404,"code": "RecycledItemNotFound", // File does not exist"message": "Recycled item not found.","recycledItemId": 2},{"status": 404,"code": "DirectoryNotFound", // Parent directory does not exist"message": "Directory not found.","recycledItemId": 3},{"status": 200, // A new directory is automatically created when restoring to an existing target directory"path": [ "foo", "new_directory" ],"recycledItemId": 4},{"status": 404,"code": "SourceFileNotFound", // Source file for symbolic link not found"message": "Source file not found.","recycledItemId": 5}]}
{ "taskId": 20 }
[{"taskId": 20,"status": 200,"result": [{ "status": 200, "path": [ "foo", "bar", "file (2).docx" ], "recycledItemId": 6 }]}]
Response Parameters | Description | Type |
result.status | Status: 200: Recovery successful Other: Recovery failed | String |
result.path | Final file path | String Array |
result.recycledItemId | Project ID of the recycle bin when making a request | String |
taskId | Task ID when recovering asynchronously can be queried via the Query Task API to check the task status. | String |
Response Parameters | Description | Type |
status | Status: 202: Task in progress 200: All executions successful 207: Part or all executions failed | String |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan