Calling POST on /posts.json returns null

Are you 100% sure this is returning nothing?

When I posted this post I got:

And we are explicit about returning stuff here:

https://github.com/discourse/discourse/blob/84a10f8212ba4c5ea6e5923b6dba4d0f0e9c44c5/app/controllers/posts_controller.rb#L177-L183

There may be some edge case though if your post hits the queue, but I am pretty sure it should return a payload.

Can you try: How to reverse engineer the Discourse API

5 Likes