# Update a Post, via API PUT: request

**URL:** <https://meta.discourse.org/t/update-a-post-via-api-put-request/130252>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [October 4, 2019, 3:01pm UTC](https://meta.discourse.org/t/update-a-post-via-api-put-request/130252 "2019-10-04T15:01:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![alank](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@alank](https://meta.discourse.org/u/alank)\
**Post date:** [October 4, 2019, 3:01pm UTC](https://meta.discourse.org/t/update-a-post-via-api-put-request/130252/1 "2019-10-04T15:01:16Z")

</div>

Just to understand, the API Discourse docs mention this kind of… structure…

```plaintext
{
"post[raw]": "string",
"post[raw_old]": "string",
"post[edit_reason]": "string",
"post[cooked]": "string"
}

```

Before I attempt this, does this mean, or well.. what does this mean?

does this mean: `{post: {raw: ..., raw_old: ... }}`

Or simply `{raw: "", raw_old: ""...}`

And also what is `raw_old`? Only says that each element is a “string” of what I must PUT: in the JSON body.

I’m simply attempting to add a line at the top of the post (which was initially created by a Bot) where we need to add a link to another site - note also that towards the goal of having that first paragraph displayed under the Category title, or in the `cooked`

 element to be shown (Defined just under the category title).

Hope this makes sense. If not ask me to clarify.

---

_[View the full topic](https://meta.discourse.org/t/update-a-post-via-api-put-request/130252)._
