Yes it is possible using this endpoint: site/_api/SP.MoveCopyUtil.CopyFolderByPath() and the right parameters as you can see below:
var postData = {
"srcPath":{
"__metadata":{
"type":"SP.ResourcePath"
},
"DecodedUrl":"https://example.com/sites/<siteName>/folder/<FolderToCopy>"
},
"destPath":{
"__metadata":{
"type":"SP.ResourcePath"
},
"DecodedUrl":"https://example.com/sites/<siteName>/folder/<NameOfNewFolder>"
},
"options":{
"__metadata":{
"type":"SP.MoveCopyOptions"
},
"ResetAuthorAndCreatedOnCopy":true,
"ShouldBypassSharedLocks":true
}
};
$.ajax({
type: "POST",
url: "https://example.com/sites/<siteName>/_api/SP.MoveCopyUtil.CopyFolderByPath()",
data: JSON.stringify(postData),
headers: {
"Accept": "application/json; odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val()
},
contentType: "application/json; odata=verbose",
success: function (data) {
console.log(data);
}
});
I hope this will help someone in the future.