priyanka123 Hi @all, I want to update groups of users through API.Please suggest me how to do this. can we update users group when we are registering the user?
all Hi priyanka123, I am not sure what your question is, do you want to: update which groups a user belongs to? update the attributes of a group a user belongs to? update any or multiple groups?
clarkwinkelmann priyanka123 you can edit the groups via the Flarum UI and look at the browser network tab to see how the request is built. It uses the relationship structure of the JSON:API spec.
clarkwinkelmann priyanka123 you'll have to make one API request for each user. Or you could develop your own extension to add an API endpoint that does what you need.