Reply using API

Hi, I’m Jerry.

I use API to post external content.

There are too many topics…

So, I want to use replies on a topic.

First, post a topic with the title using date.

Second, create replies about external content.

In API docs, there’s no about “create replies”.

Is it possible to create replies using Discourse API?

Thank you.

Welcome on meta, @jjerry-k :slight_smile:

It’s here:

https://docs.discourse.org/#tag/Posts/operation/createTopicPostPM

Create post = create reply.

You can specify which post your new post replies to with the reply_to_post_number parameter, whose value will be the ID of the post you reply to.
It should be added to the documentation soon: DEV: Added a missing parameter to Discourse API Docs by Canapin · Pull Request #21085 · discourse/discourse · GitHub

3 Likes

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