Posts

Lock a post from being edited

PUT
https://discourse.example.com/posts/{id}/locked.json

Body

application/json
lockedstringrequired

Whether to lock the post (true/false)

Parameters

Api-Keystringrequiredheader
Api-Usernamestringrequiredheader
idstringrequiredpath

Response

200OKobject

post updated

Response fields application/json
lockedbooleanrequired

Whether the post is locked