AEM Assets API: How to create tags with locales? | Community
Skip to main content
New Participant
September 28, 2022
Solved

AEM Assets API: How to create tags with locales?

  • September 28, 2022
  • 1 reply
  • 1320 views

I wanted to know if it would be possible to create AEM tags and namespaces programatically using Assets API in AEM?

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 lukasz-m

Hi @spidey1405,

Assets API is not supporting tags, it is designed for Assets CRUD operations only. AEM is not providing any dedicated REST api for tags and/or namespace management. You can try to use /bin/tagcommand but this seems to be more like a workaround, than a proper solution. Alternatively you can write your own servlet that will use TagManager to create namespace/tags - https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/tagging/TagManager.html

 

1 reply

lukasz-m
lukasz-mAccepted solution
New Participant
September 28, 2022

Hi @spidey1405,

Assets API is not supporting tags, it is designed for Assets CRUD operations only. AEM is not providing any dedicated REST api for tags and/or namespace management. You can try to use /bin/tagcommand but this seems to be more like a workaround, than a proper solution. Alternatively you can write your own servlet that will use TagManager to create namespace/tags - https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/com/day/cq/tagging/TagManager.html

 

New Participant
September 28, 2022

@2408501 

Can you elaborate a bit more on /bin/tagcommand?