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}&with_inode={WithInode}`
Request parameters. | Description | Type | Required or Not |
LibraryId | Media Library ID, obtained after creating a media library through 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. See Create Tenant Space | String | No |
DirPath | Directory path or album name. For multi-level directories, use slash (`/`) to separate, such as `foo/bar`. For the root directory, leave this parameter empty. | String | No |
ConflictResolutionStrategy | Handling method when a conflict occurs in the last first-level directory. Return HTTP 409 Conflict and SameNameDirectoryOrFileExists error code when conflicts with rename: automatically rename the last level directory when conflicts with ask by default | 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 specify user identity. For details, see Generate Access Token API. | String | No |
WithInode | 0 or 1, whether to return inode (file directory ID), default do not return | String | No |
HTTP 201 Created.{"creationTime": "2025-09-29T02:53:09.000z""inode": "b63393076d249110000631c316d9751a"}}
{"creationTime": "2025-09-29T02:53:09.000z""path": [ "foo", "bar (1)" ]}
{"creationTime": "2025-09-29T02:53:09.000z""path": [ "foo", "bar (1)" ],"inode": "b63393076d249110000631c316d9751a"}
Response Parameters | Description | Type |
creationTime | Creation time. | String |
path | The final path of the directory or album may not match the specified path when creating it, as automatic renaming may occur. | String |
inode | Last level file directory ID | String |
피드백