cmdntd
(cmdntd)
January 14, 2022, 11:07am
1
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:
ID of private message
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?
1 Like
pfaffman
(Jay Pfaffman)
January 14, 2022, 2:37pm
2
cmdntd:
That’s the topic.id
cmdntd:
ID with bigger number (like a ID for edit private message)
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.
3 Likes
system
(system)
Closed
February 13, 2022, 2:37pm
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.