How do I add tags to a post created with the API?

I want to create a new POST and add a TAGS_NAME using API.
I have seen the documentation in Discourse API Docs

But I have not found references to add to new post or edit.

1 Like

Here’s how to find out anything that’s possible: How to reverse engineer the Discourse API

2 Likes

It will be the API for creating topics:

https://docs.discourse.org/#tag/Topics/paths/~1posts.json/post

But you are correct - how to create a post with tags is missing. Until we get that updated, feel free to use try.discourse.org to examine how this is done via devtools:

After creating the topic, my browser sent this form data:

image

7 Likes

Excellent with your advice I solved :wink:

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.