API를 사용하여 그룹에 멤버와 소유자를 추가할 때, 필요한 데이터 형식이 서로 다르게 보입니다. 이는 의도된 것일 수 있지만, 그 이유를 알고 싶습니다. (이 문제로 인해 pydiscourse가 깨지고 있는데, pydiscourse는 제가 찾은 Python에서 Discourse API와 상호작용하는 가장 좋은 라이브러리입니다.)
그룹에 멤버 추가:
curl -X PUT "https://{mydomain}/admin/groups/{group_id}/members.json" \
-d 'usernames={my-username}' \
-H "Api-Key: {my-api-key}" \
-H "Api-Username: {my-api-username}"
그룹에 소유자 추가:
curl -X PUT "https://{mydomain}/admin/groups/{group_id}/owners.json" \
-d 'group[usernames]={my-username}' \
-H "Api-Key: {my-api-key}" \
-H "Api-Username: {my-api-username}"
owners 엔드포인트에서 사용자 이름 파라미터의 키가 단순히 usernames가 아니라 group[usernames]로 작성되어야 하는 이유가 궁금합니다.