# Cambiare la proprietà tramite l'API?

**URL:** <https://meta.discourse.org/t/change-ownership-through-the-api/109456>\
**Category:** Development\
**Created:** [18 Febbraio 2019, 12:40pm UTC](https://meta.discourse.org/t/change-ownership-through-the-api/109456 "2019-02-18T12:40:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![nottrobin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nottrobin/32/114694_2.png) [@nottrobin](https://meta.discourse.org/u/nottrobin)\
**Post date:** [18 Febbraio 2019, 12:40pm UTC](https://meta.discourse.org/t/change-ownership-through-the-api/109456/1 "2019-02-18T12:40:09Z")

</div>

I’m trying to change the ownership of posts through the API, but can’t work out how to do it.

I tried [using PUT to `/posts/{id}.json`](https://docs.discourse.org/#tag/Posts%2Fpaths%2F~1posts~1%7Bid%7D.json%2Fput) with setting `post[username]` and `post[user_id]`, but neither of those seemed to work.

Anyone know how to do this?

---

_[View the full topic](https://meta.discourse.org/t/change-ownership-through-the-api/109456)._
