Put users in groups - JS app
Hi,
I'm trying to add a user to a group and also dynamically remove them from my application.
For this I'm trying to use the PbxTableUsers API, which according to the documentation allows updating user parameters.
I am sending the following message to try to join the user 'danilo.volz' on the group '2000-1':
{"api":"PbxTableUsers","mt":"ReplicateUpdate","columns":{"guid":"8e4b16d1d79840ba980043ea0d9523a3","cn":"Danilo Volz","h323":"danilo.volz","grps":{"name":"2000-1","dyn":"in"},"src":"danilo.volz,inn-lab-ipva"}}
But automatically the group disappears from my profile and I don't join the group either.
Could you indicate if this is the correct way to join and leave groups dynamically? What's wrong with my message?
Thank you very much in advance.