Domanda

I see on this page that I can add a user to a group by POSTing to /user/group/direct?username=USERNAME, however that looks like you can only add one group to the user at a time. The API calls I will be making may require that I add several and it would be to nice put all the groups into one POST request. Is there a way to do this?

È stato utile?

Soluzione

Unfortunately, the current resources only allow adding one group membership at a time, either through the user or group resources. You will need to make several calls.

There is an open feature request (CWD-2378) to add bulk operations to the resources.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top