Can't remove user from usergroup from QML



  • Hello,
    From an existing user group (with id stored in "groupId"), I can successfully add an existing user (userID) to its membership as followed :

    engineioclient.create({ "id": groupId, "member": { "id": userId, "objectType": "users" }}, Enginio.UsergroupMembersOperation);

    but when I tried to remove the user from the usergroup with :

    engineioclient.remove({ "id": groupId, "member": { "id": userId, "objectType": "users" }}, Enginio.UsergroupMembersOperation);

    I get the error "Cannot parse request body as json".
    What am I doing wrong ?

    Thanks for your help.

    [update] : Would anyone have some hints on this issue ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.