Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
PUT /api/v1/directory/`{LibraryId}`/`{SpaceId}`/`{DirPath}`?conflict_resolution_strategy=`{ConflictResolutionStrategy}`&move_authority=`{MoveAuthority}`&access_token=`{AccessToken}`&user_id=`{UserId}`
Request parameters | Description | Type | Required or Not |
LibraryId | Media Library ID, obtain it after creating a media library in the console for media hosting. 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, this parameter is the space ID returned by the Create Tenant Space API. | String | Yes |
DirPath | path of the target directory or album name | String | Yes |
ConflictResolutionStrategy | Handling method when conflicts occur in the last-level directory, default is ask: ask: returns HTTP 409 Conflict and the SameNameDirectoryOrFileExists error code when conflicts with. rename the last level directory if conflicts with | String | No |
AccessToken | Access token, please refer to generate access token | String | Yes |
UserId | Recognition of user identity, when the access token has admin privileges and the recognition of user identity during token application is empty, is used to temporarily specify user identity. For details, see Generate Access Token API | String | No |
{"from": "foo/bar_old"}
Request parameters | Description | Type | Required or Not |
from | renamed or moved source directory or album path | String | Yes |
{ "path": [ "foo", "bar_new (1)" ] }
Response Parameters | Description | Type |
path | The final directory or album path, which may differ from the path specified during moving/renaming due to potential automatic renaming. | Array |
피드백