AEM Assets API: How to create tags with locales? | Community
Skip to main content
Level 4
Sep 28, 2022 10:31 AM UTC
Solved

AEM Assets API: How to create tags with locales?

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.
lukasz-m
lukasz-mAccepted solution
New Participant
Sep 28, 2022 11:06 AM UTC

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

 

2 replies

lukasz-m
lukasz-mAccepted solution
New Participant
Sep 28, 2022 11:06 AM UTC

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

 

Translate
Level 4
Sep 28, 2022 12:01 PM UTC

@2408501 

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

Translate