API経由でグループのウォッチリストを更新しようとするとエラーが発生します (PUT groups/{id}.json)

優先度/深刻度:

中から高

プラットフォーム:

Pythonスクリプト、およびcURLコマンドライン

Discourse サーバーのバージョン:

3.6.0.beta3-latest (6adb4f8e84)

説明:

既存のグループの「watching_category_ids」を更新しようとすると、私のPythonスクリプト(単純な「requests.put」を使用)は次のエラーを報告します。

_doPut> ERROR from request:  422 Unprocessable Entity {‘user_count’: 2, ‘errors’: [‘You supplied invalid parameters to the request: update_existing_users’]}

私のJSONデータには update_existing_users というパラメーターは存在しないにもかかわらずです。

cURLを使用して確認すると:

curl -k -L -X PUT -H 'api-key:xyz’ \
   -H 'api-username:system'  \
   -H 'Accept:application/json;charset=utf-8'  \
   -H 'Content-Type:application/json'   \
   --data '{\"group\":{\"name\":\"eb-chair-exo\",\"watching_category_ids\":[336,337]}}' \
   https://cms-phys-talk.web.cern.ch/groups/46.json

同じエラーが発生します。

{“user_count”:2,“errors”:[“You supplied invalid parameters to the request: update_existing_users”]}%

再現手順:

curl -k -L -X PUT -H 'api-key:xyz’ \
   -H 'api-username:system'  \
   -H 'Accept:application/json;charset=utf-8'  \
   -H 'Content-Type:application/json'   \
   --data '{\"group\":{\"name\":\"eb-chair-exo\",\"watching_category_ids\":[336,337]}}' \
   https://cms-phys-talk.web.cern.ch/groups/46.json

編集:Discourseサーバーのバージョンを追加しました