# Can't update a topic's body by API

**URL:** <https://meta.discourse.org/t/cant-update-a-topics-body-by-api/264640>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [May 11, 2023, 12:05pm UTC](https://meta.discourse.org/t/cant-update-a-topics-body-by-api/264640 "2023-05-11T12:05:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [May 11, 2023, 3:31pm UTC](https://meta.discourse.org/t/cant-update-a-topics-body-by-api/264640/3 "2023-05-11T15:31:52Z")

</div>

@Lilly’s right.

A _topic_ is defined by attributes like title, category, tags, etc.

But the content belongs to a _post_.

If you want to update the title and the content, you need 2 requests.

1. PUT on the topic

2. PUT on the first post. You can find the post’s ID in the HTML code of the page. Look for the `data-post-id` attribute in `<article>`.  
Example:

---

_[View the full topic](https://meta.discourse.org/t/cant-update-a-topics-body-by-api/264640)._
