Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
PUT /api/v1/directory/{LibraryId}/{SpaceId}/{DirPath}?conflict_resolution_strategy={ConflictResolutionStrategy}&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 hyphen (`-`). If the media library is in multi-tenant mode, you must specify this parameter. See create tenant space. | String | No |
DirPath | Target directory path or album name. For multi-level directories, use a slash ( /) to separate, such as foo/bar_new | String | Yes |
ConflictResolutionStrategy | Handling method when last-level directory conflicts, default is ask: HTTP 409 Conflict and SameNameDirectoryOrFileExists error code returned when conflicts with rename the last level directory if conflicts with | String | No |
AccessToken | Access token, see Generate access token | String | Yes |
UserId | User identity recognition. When the permission corresponding to the access token is admin permission and the user identity recognition when applying for the access token is empty, it is used to temporarily designate the user identity. For details, see Generate Access Token API. | String | No |
{"copyFrom": "foo/bar"}
Request parameters. | Description | Type | Required or Not |
copyFrom | The source directory or album path to be copied | String | Yes |
{ "path": [ "foo", "bar (1)" ] }
{ "taskId": 10 }
[{"id": 10,"status": 200,"result": { "path": [ "foo", "bar (1)" ] }}]
Response Parameters | Description | Type |
path | Indicates the final directory or album path. Since automatic renaming may exist, the final path here may not equal the path specified when copying the directory or album. | Array |
taskId | The task ID for asynchronous copying can be used to query task status via the Query Task API. | String |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan