Forum Discussion
6 Replies
This article might be helpful https://community.lithium.com/t5/Custom-tags/Using-the-Community-API-with-Custom-Tags/ta-p/39908
Sign in to react to this post- shravani9 years agoGuide
We need an api where we can get the list of custom tags which are added from community only.
Sign in to react to this post - shravani9 years agoGuide
Hi VikasB,
This api is returning all the tags. We need only those tags which are added from admin mod tools.
Sign in to react to this post - srujanayeruvaka9 years agoChampion
Hi shravani,
Do you mean custom tags added from Admin -> Mod Tools -> Custom Tags?
If yes, then I don't think there is a V1 API to retrieve these. However, you could use V2 API to fetch custom tags associated with a message. But, at this time, a LiQL query of the custom_tag collection must be constrained by a single message ID. For example:SELECT * FROM custom_tags WHERE messages.id='nnn'
You may have to make multiple calls for all message and get the list, but this still does not give you all the custom tags. It only gives what have been used in the posts.
Hope this helps!
Thanks,
Srujana.
Sign in to react to this post - shravani9 years agoGuideSign in to react to this post