Forum Discussion

moconnor5's avatar
10 years ago

Rest Call to Invite User to Group

Whenever I do make an invite call: http://community.lithium.com/community-name/restapi/vc/groups/id/video_cards/invite, I always get a this error code: 

{"code":303,"message":"Permission Denied"}

I've checked everything I can think of: session token for the call, permission of user (Rest_API and Administrator), and permission of user in the group (GroupAdmin with everything granted). I've sent invites to different users and I've tried different groups, but I always get the same "Permission Denied" message.  Any help would be appreciated.

 

Thanks

4 Replies

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    10 years ago

    Hi moconnor5 

     

    could you share exactly what is the HTTP call you are making (with parameters and headers) to ensure there is nothing out of the ordinary? Or are you getting  the error from a custom component?

     

    Thanks,

  • vaishnavi's avatar
    vaishnavi
    Expert
    9 years ago

    moconnor5PaoloT

    I am facing the same issue.

     

    My API calls -

    http://[community_url]/restapi/vc/groups/id/test-group/add?restapi.session_key=[key]&groups.invitee=users/login/[login]

    http://[community_url]/restapi/vc/groups/id/test-group/remove?restapi.session_key=[key]&groups.invitee=users/login/[login]

     

    Im getting below error -

    <response status="error">
    <error code="501">
    <message> Unknown path element at node 'community.users'. </message>
    </error>
    </response>
     
    Please let me know if anyone has the latest information on these APIs.
    Thanks,
    Vaishnavi
  • vaishnavi's avatar
    vaishnavi
    Expert
    9 years ago
    Sorry guys, I found out that I was missing forward slash(/) at the start of groups.invitee - groups.invitee=users/login/[login] - would not work groups.invitee=/users/login/[login] - this would work