# Unable to lock post with API

**URL:** <https://meta.discourse.org/t/unable-to-lock-post-with-api/228974>\
**Category:** Product Support\
**Created:** [June 3, 2022, 7:19pm UTC](https://meta.discourse.org/t/unable-to-lock-post-with-api/228974 "2022-06-03T19:19:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mksafi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mksafi/32/244062_2.png) [@mksafi](https://meta.discourse.org/u/mksafi)\
**Post date:** [June 3, 2022, 7:24pm UTC](https://meta.discourse.org/t/unable-to-lock-post-with-api/228974/3 "2022-06-03T19:24:09Z")

</div>

The API to lock a post is documented here [Discourse API Docs](https://docs.discourse.org/#tag/Posts/operation/lockPost) 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.

---

_[View the full topic](https://meta.discourse.org/t/unable-to-lock-post-with-api/228974)._
