ASI/people/:user_id/@groups/:group_id

GET ^top

Returns the membership status of this person in this group.

Returns

  • 200 - OK
  • 403 - Only the authenticated person can view their membership status.
  • 404 - The person or group doesn't exist or there is no connection between the two.

Response example


{
  "entry": null
}
            

PUT ^top

Changes the membership status. User's admin status in group can be changed. Also, pending membership requests can be accepted. User's own admin status cannot be changed, changing of admin status must be done by different group admin.

Parameters

admin_status

True to grant admin rights, false to revoke them.

accepted

True to accept a pending request.

Returns

  • 200 - OK

DELETE ^top

Removes this person from this group.

Any user can remove their own membership.

An admin user can remove any other user in the group (even other admins).

Returns

  • 200 - OK