# Cannot update group owners via Ruby or REST API

**URL:** <https://meta.discourse.org/t/cannot-update-group-owners-via-ruby-or-rest-api/98253>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [28 בספטמבר,‏ 2018,‏ 6:17am UTC](https://meta.discourse.org/t/cannot-update-group-owners-via-ruby-or-rest-api/98253 "2018-09-28T06:17:30Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [10 באוגוסט,‏ 2021,‏ 2:10pm UTC](https://meta.discourse.org/t/cannot-update-group-owners-via-ruby-or-rest-api/98253/6 "2021-08-10T14:10:19Z")

</div>

Methods for adding and removing group owners now exist in the discourse\_api gem.

[https://github.com/discourse/discourse\_api/pull/239](https://github.com/discourse/discourse_api/pull/239)

```ruby
@client.group_add_owners(41, { usernames: "48ce9df193c627574202" } )
@client.group_remove_owners(41, { usernames: "48ce9df193c627574202" } )

```

---

_[View the full topic](https://meta.discourse.org/t/cannot-update-group-owners-via-ruby-or-rest-api/98253)._
