API endpoint that allows groups to be viewed or edited.

filtering

http://localhost:8000/api/groups/?members__user=1

will get groups user 1 is a member of

extra filter API

http://localhost:8000/api/groups/?useradmin=1

will find groups where user 1 is an admin

http://localhost:8000/api/groups/?i_can_ask=true - gets groups you are a member of where you can ask questions

http://localhost:8000/api/groups/?i_can_ask=false - gets groups you are a member of where you cannot ask questions

meaning of fields

canAskDefault : new members can_ask flag will match this, controlling if they can ask questions to a group

require_approval_to_join : if True, a membership request will be created, instead of the user instantly joining the group `when the user attempts to join.

secret : prevents the group from showing in the groups list

autoPublishQuestions : users questions must be approved by admin before being added to the group

in detail view

check out unanswered to see questions in a group you have not answered

check out questions to see all questions in a group

check out join to join or request to join a group

check out leave to leave a group

check out enable_notifications

check out disable_notifications

If require_approval_to_join is true a request to join will be sent instead of instantly joining

check out members to see members of a group

GET /api/groups/28/
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 28,
    "url": "https://api.represent.me/api/groups/28/",
    "name": "Young Greens Convention 2015",
    "slug": "young-greens-convention-2015",
    "parent": null,
    "desc": "Convention is a yearly opportunity for Young Greens of England and Wales to come together to network, engage in workshops and vote for policy and new national leadership teams at the Annual General Meeting. This project we're partnering with Represent on aims to make debates more accessible and fun for our members.",
    "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/24901-sv12ep.jpg",
    "logo_image": null,
    "welcome_message": "",
    "created_at": "2015-10-11T19:17:44.419000Z",
    "modified_at": "2016-06-29T13:21:42.289230Z",
    "private": true,
    "default_share_email": 0,
    "member_count": 7,
    "my_membership": null,
    "autoPublishQuestions": false,
    "requested_join": false,
    "questions_count": 6,
    "require_approval_to_join": true,
    "secret": true,
    "canAskDefault": true,
    "votes_count": 0,
    "official": false
}