# How to update a private message by API?

**URL:** https://meta.discourse.org/t/how-to-update-a-private-message-by-api/214290
**Category:** Development
**Tags:** rest-api
**Created:** [January 9, 2022, 11:23am UTC](https://meta.discourse.org/t/how-to-update-a-private-message-by-api/214290 "2022-01-09T11:23:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [January 9, 2022, 11:23am UTC](https://meta.discourse.org/t/how-to-update-a-private-message-by-api/214290/1 "2022-01-09T11:23:38Z")

</div>

It seems not have API to update private message

> **[Discourse API Docs](https://docs.discourse.org/#operation/createTopicPostPM)**

I want to update a private message  
Could I use PUT topic to do it? Do you have any idea to update private message?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 9, 2022, 11:25am UTC](https://meta.discourse.org/t/how-to-update-a-private-message-by-api/214290/2 "2022-01-09T11:25:20Z")

</div>

See [How to reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576). You’re on the right track, I think.

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [January 9, 2022, 11:27am UTC](https://meta.discourse.org/t/how-to-update-a-private-message-by-api/214290/3 "2022-01-09T11:27:23Z")

</div>

Thanks. I should try it.

---

<div class="post-metadata">

### Author: ![cmdntd](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmdntd/32/192008_2.png) [@cmdntd](https://meta.discourse.org/u/cmdntd)
#### Post date: [January 9, 2022, 12:06pm UTC](https://meta.discourse.org/t/how-to-update-a-private-message-by-api/214290/4 "2022-01-09T12:06:31Z")

</div>

It seems blank here:  
[https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576/32](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576/32)
