Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
POST /api/v1/recycled/{LibraryId}/{SpaceId}/{RecycledItemId}?restore&conflict_resolution_strategy={ConflictResolutionStrategy}&access_token={AccessToken}&user_id={UserId}&restore_path_strategy={RestorePathStrategy}
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 hyphen (`-`); if the media library is in multi-tenant mode, you must specify this parameter. For retrieval, see Create Tenant Space | String | No |
RecycledItemId | Recycle bin project ID. For retrieval, see List Recycle Bin Projects | String | Yes |
ConflictResolutionStrategy | Handling method for filename conflict, defaults to rename ask: Returns HTTP 409 Conflict and SameNameDirectoryOrFileExists error code when conflicts with rename: Automatically rename file when conflicts with overwrite: If the target is a directory or album, it defaults to ask and does not support overwrite If the target is a file, overwrite the existing file When a file exists in the target space with an earlier version, moving to overwrite is not supported. | String | No |
AccessToken | Access token, see Generate Access Token | String | Yes |
UserId | User identity recognition, when the access token has admin privileges and the user identity recognition during token application is empty, is used to temporarily specify user identity. For details, see Generate Access Token API | String | No |
RestorePathStrategy | Restoration project source path processing method originalPath: 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 does not exist By default: originalPath | String | No |
{ "path": [ "foo", "bar", "file (1).docx" ] }
Response Parameters | Description | Type |
path | The final file path | String Array |
피드백