Copy Folder
Copies the folder to a new parent folder. When the copy folder operation is performed the folder along with its children will be copied to the new parent folder. The folder can only be copied to an active parent folder. The path of the folder and its children will be updated accordingly. The copy operation is an asynchronous operation and the response will contain the job identifier. The status of the job can be checked using the job status API. Name uniqueness should be maintained under the target parent folder.
Note:
- The copy operation copies only the latest version not all versions
- ACLs are not copied when a folder is copied. The copied folder will have the same ACLs as the target folder.
Prerequisites
Section titled “Prerequisites”- Source folder and Target parent folder. To create a folder refer here
Request
Section titled “Request”POST {baseUrl}/spaces/{spaceId}/folders/{folderId}/copy-
Headers:
- Authorization:
Bearer {tid token}
- Authorization:
-
Body:
targetParentId: The target parent identifier where the folder needs to be copied.
Response
Section titled “Response”To know more about the Copy folder API refer here.