There are 2 IDs when I try to get API, in case of lack documentation

AI-generated summary

When attempting to use the Discourse API, cmdntd encountered an issue with two IDs being displayed: the ID of the private message and a larger ID (seemingly for editing the private message). After investigating, pfaffman clarified that the smaller ID is the topic.id (used for changing the title) and the larger ID is the post.id (used for changing the raw content). To update message details, the post.id must be used, while the topic.id is used for updating the title. This can be observed in the topic’s JSON data, as demonstrated by pfaffman.

I try to do like Sam’s instruction at How to reverse engineer the Discourse API
But it display 2 IDs, and it makes me do not know how to do next

When I tried to update private message, it has different 2 IDs:

  1. ID of private message
  2. ID with bigger number (like a ID for edit private message)

When I test to send PUT request, ID of private message just can change title. And can not change message details by “raw”

It seems message details must change by new edit ID
And I do not know how to get the second ID of the post (1846 in image)

Could you explain for this issue?

That’s the topic.id

That’s the post.id

The title is part of the topic, raw is part of the post. If you look closely in the post, you’ll see a topic_id field that contains the number that you’re calling the private message ID.

You can have a look here: There are 2 IDs when I try to get API, in case of lack documentation (that’s this topic, but it’s the same as PM) and see:

So that’s the post_id is what you’ll use to POST changes to raw. The topic_id is where you change the title.