---
title: "Changes to Lock a post from being edited"
method: PUT
path: "/posts/{id}/locked.json"
---

# Changes to Lock a post from being edited

`PUT /posts/{id}/locked.json`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 52 revisions.

- **2025-10-27** `8393fa61d3e0`: 1 info
- **2022-07-15** `100ac4a61d07`: 1 breaking
- **2022-03-05** `e1108b0434c0`: 1 info

## Changes

- **2025-10-27** `8393fa61d3e0`: 1 info
  - the response property `locked` became required for the status `200`
- **2022-07-15** `100ac4a61d07`: 1 breaking
  - the `locked` request property type changed from `boolean` to `string`
- **2022-03-05** `e1108b0434c0`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/discourse/apis/discourse-api-documentation/docs/posts/:id/locked.json/put.md) - [API](https://skmtc.dev/discourse/apis/discourse-api-documentation.md) - [Page](https://skmtc.dev/discourse/apis/discourse-api-documentation/changes/posts/:id/locked.json/put)
