XF 2.1 Setting secondary_group_ids via API, just clears them?

Hello,

I'm attempting to use the XenForo API to update my user's secondary groups, however no matter what format I try to set secondary_group_ids to, it always results in them just being cleared out. I've tried "[3, 5]", "3, 5" "3,5", "3,5," "[3,5,]" but none seem to work.

On the documentation it says it needs to be integer[] which I thought [4,5] would more then qualify but apparently not. I'm using Java /w HttpClient to make the requests, the returned response is success: true /w the user object and it resetting the ids: secondary_group_ids": [],
 
Top Bottom