Error al intentar actualizar la lista de seguimiento de un grupo vía API (PUT groups/{id}.json)

Prioridad/Severidad:

media a alta

Plataforma:

Script de Python, así como línea de comandos cURL

Versión del servidor Discourse:

3.6.0.beta3-latest (6adb4f8e84)

Descripción:

al intentar actualizar los watching_category_ids de un grupo existente, mi script de Python (usando una simple “requests.put”) informa el siguiente error:

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

incluso si no hay ningún parámetro llamado update_existing_users en mis datos json.

Usando cURL para verificar mediante:

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

Obtengo el mismo error:

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

Pasos para reproducir:

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

edición: añadida la versión del servidor discourse