Methods for adding and removing group owners now exist in the discourse_api gem.
https://github.com/discourse/discourse_api/pull/239
@client.group_add_owners(41, { usernames: "48ce9df193c627574202" } )
@client.group_remove_owners(41, { usernames: "48ce9df193c627574202" } )