The API to lock a post is documented here Discourse API Docs but yeah, I also tried to reverse engineer how the Discourse client does it, and it looks very similar to the way I’m doing it from my application.
mksafi
(M.K.)
3
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| 500 or 400 when updating the content of a post using the API | 4 | 1649 | April 24, 2019 | |
| Posting a new topic via API | 7 | 4032 | January 29, 2025 | |
| Issues with creating a post and locking the topic via the API | 9 | 1117 | July 31, 2020 | |
| Access via Discourse API, key and/or user rejected | 2 | 974 | December 1, 2023 | |
| Getting an error while trying to fetch individual posts | 1 | 954 | April 14, 2022 |