Minhaj
(Minhaj Shakeel)
July 10, 2020, 11:06am
1
I want to query tag_groups and assign on of the tags from it to the topic which I am creating using the Discourse API. I am unable to find it in API docs, can someone point me out.
osioke
(Osioke Itseuwa)
July 10, 2020, 11:08am
2
If you can’t find it in the API docs, you’ll have to reverse engineer the API, see here:
Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api.
Many of the endpoints are properly documented in the discourse_api gem, however some endpoints lack documentation.
To determine how to do something with the JSON API here are some steps you can follow.
Example: recategorize a topic.
Go to a topic and start editing a category:
[image]
Open Chrome dev tools, switch to the Network tab, select XHR filter:
[image]
Perform the op…
3 Likes