Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM Assets API: How to create tags with locales?

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/Ta...

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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/Ta...

 

Avatar

Level 5

@LUKA 

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