Folder rename api

Hi,

From CMS ui we can rename folder without any data loss

image

, same thing I want through api ({{my_machine}}/cms/ws/rest/api/nodes/content/documents/my_project/sites/bmw/) but through api I am loosing my siblings data, however folder name is getting changed. Not sure whether I am refering correct api!!. Below request body I am passing through PUT request.

{
“name”: “bmw”,
“primaryType”: “hippostd:folder”,
“path”: “/content/documents/my_project/sites/bmw”,
“identifier”: “f510870c-c6f7-4153-9a00-77ffc82fe981”,
“mixinTypes”: [
“hippotranslation:translated”,
“mix:versionable”,
“hippo:named”
],
“properties”: [
{
“name”: “hippotranslation:id”,
“type”: “String”,
“multiple”: false,
“values”: [
“9bedefaf-9e5f-4891-a7d2-5e61b1ac6c7d”
]
},
{
“name”: “hippotranslation:locale”,
“type”: “String”,
“multiple”: false,
“values”: [
“en”
]
},
{
“name”: “hippo:name”,
“type”: “String”,
“multiple”: false,
“values”: [
“bmw12” // I am updating this(only name) value only, no change in folder original url.
]
},
{
“name”: “hippostd:foldertype”,
“type”: “String”,
“multiple”: true,
“values”: [
“new-translated-folder”,
“new-document”
]
}
],
“nodes”: // Even if I am not passing it, still loosing data.
}

Some other properties(jcr:predecessors, jcr:baseVersion, jcr:isCheckedOut and jcr:versionHistory) I had removed at PUT call, due to this I was getting 500 Internal server error at PUT call.
Can someone(@jasper.floor if you can) help me to achieve my requirements?.

Hi @jeroen.hoffman ,

Can you help me on my above query(Folder rename api)?

Thanks,
Manish Kumar