# Add a user to a group via API?

**URL:** <https://meta.discourse.org/t/add-a-user-to-a-group-via-api/45077>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [June 1, 2016, 9:42am UTC](https://meta.discourse.org/t/add-a-user-to-a-group-via-api/45077 "2016-06-01T09:42:55Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Anton\_Akhmerov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/anton_akhmerov/32/169548_2.png) [@Anton\_Akhmerov](https://meta.discourse.org/u/Anton_Akhmerov)\
**Post date:** [March 16, 2023, 3:13pm UTC](https://meta.discourse.org/t/add-a-user-to-a-group-via-api/45077/10 "2023-03-16T15:13:44Z")

</div>

I’m getting 404 on `PUT /admin/groups/{group_id}/owners.json` on discourse 3.1.0.beta2 (f8863b0f98); is this topic up to date?

EDIT: it seems that one should use `PUT /groups/{group_id}/owners.json` instead. Additionally the input data is now `{"members": "username1,username2,..."}`.

---

_[View the full topic](https://meta.discourse.org/t/add-a-user-to-a-group-via-api/45077)._
