/
DI
discourse
/
Discourse API Documentation
Search skmtc…
⌘K
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Subscribe
v3
latest
OpenAPI 3.1.0
MIT
2026-07-31
93
0
688.4 KB
Posts
Lock a post from being edited
put
/posts/{id}/locked.json
Path parameters
id
string
required
Headers
Api-Key
string
required
Api-Username
string
required
Request body
object
required
locked
string
required
Whether to lock the post (true/false)
Response
post updated
object
required
locked
boolean
required
Whether the post is locked