Ruby API では、create_group と update_group で owner_usernames を割り当てるオプションが 表示されています。create_group は機能しているようです(グループ作成後にオーナーが表示される)が、owner_usernames は REST 側 では create 時のみ割り当て可能なようです。そのため、Ruby API を使用する場合、UI を通じずに既存のグループのオーナーにユーザーを昇格させることができません。
これは設計によるものですか、それとも PR の対象となる問題でしょうか?Ruby 側で groups#add_owners および groups#remove_owner に対応するメソッドが必要だと考えてよいでしょうか?
「いいね!」 1
The UI is using the API. Have you tried this?
「いいね!」 3
Thanks, Régis. I’m not seeing anything for ownership in discourse_api/lib/discourse_api/api/groups.rb at main · discourse/discourse_api · GitHub. I was just checking to make sure I wasn’t missing something. I can certainly just do a put request to the /admin/groups/:group_name/owners API endpoint directly without a method in the Ruby API.
「いいね!」 1
sam
(Sam Saffron)
4
The API gem may have some gaps, if you find any feel free to plug them in with PRs.

「いいね!」 1
blake
(Blake Erickson)
6
discourse_api gem に、グループのオーナーを追加・削除するメソッドが追加されました。
@client.group_add_owners(41, { usernames: "48ce9df193c627574202" } )
@client.group_remove_owners(41, { usernames: "48ce9df193c627574202" } )
「いいね!」 2