ASI/people/:user_id/@groups
GET ^top
Returns the groups in which this user is a member.
Returns
- 200 - OK
POST ^top
Attempts to add the person specified by user_id to a group. This will succeed immediately if the group is open or user_id is logged in and has an invitation.
If the group is closed and user_id is logged in, a membership request is sent.
If user_id is not logged in, an invitation is sent to user_id – but only if the group is open or the logged in user is an admin of the group.
Parameters
- group_id
The id of the target group.
Returns
- 201 - The join was successful.
- 202 - The invitation or membership request was sent.
- 403 - The logged in user is not allowed to send invitations to the group
- 409 - The user is already a member of the group or an invitation has already been sent.