REST API to Create Folder in DAM is not working as documented | Community
Skip to main content
jonasy18481676
Level 2
October 8, 2021
Solved

REST API to Create Folder in DAM is not working as documented

  • October 8, 2021
  • 1 reply
  • 2506 views

I'm communicating with Adobe Experience Manager, Version 6.5.6.0. I'm trying to create a folder using the HTTP REST API.

 

The documentation here:

https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html?lang=en#create-a-folder

Mentions:

  • POST /api/assets/myFolder -H"Content-Type: application/json" -d '{"class":"assetFolder","properties":{"title":"My Folder"}}'
  • POST /api/assets/* -F"name=myfolder" -F"title=My Folder"

However, when I create a folder like this:

Then I get a created answer, but it only uses the name I've provided, not the title. This is a screenshot of the created folder:

 

And this is a screenshot of the properties of that created folder.

 

Why doesn't it use the folder title I've configured in the POST request? Am I doing something wrong?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kishore_Kumar_

Hi @jonasy18481676 ,

 

Instead of title KEY in body, Please try with jcr:title. It works.

 

Postman

 

 

AEM

 

 

1 reply

Kishore_Kumar_
Kishore_Kumar_Accepted solution
Level 9
October 8, 2021

Hi @jonasy18481676 ,

 

Instead of title KEY in body, Please try with jcr:title. It works.

 

Postman

 

 

AEM

 

 

jonasy18481676
Level 2
October 11, 2021

Hi @kishore_kumar_ ,

 

Thanks! That indeed works.

 

I usually try to avoid functionality if it is different to what is documented to be sure that the functionality will keep working in future versions. Do you know the reason that the documentation is not correct? Will it continue to work in future versions?

Kishore_Kumar_
Level 9
October 11, 2021

Hi @jonasy18481676 ,

 

Please have an eye on this. I have raised this concern in github.

 

https://github.com/AdobeDocs/experience-manager-65.en/issues/274