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/?ordering=member_count
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 80,
    "next": "https://api.represent.me/api/groups/?ordering=member_count&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 110,
            "url": "https://api.represent.me/api/groups/110/",
            "name": "HUU Union Council 2016/17",
            "slug": "huu-union-council-201617",
            "parent": null,
            "desc": "Union Council members 2016/17",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/5b91bd74-a590-4485-8516-8069f4730e03.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-11-12T13:17:43.272943Z",
            "modified_at": "2016-11-12T13:34:03.527047Z",
            "private": true,
            "default_share_email": 2,
            "member_count": 0,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": false,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 31,
            "url": "https://api.represent.me/api/groups/31/",
            "name": "United Private Hire Drivers",
            "slug": "united-private-hire-drivers",
            "parent": null,
            "desc": "United Private Hire Drivers - Seeking better conditions for PH drivers! \r\n1. End exploitation/Fair Fares \r\n2. End UberPOOL \r\n3. Cap sector \r\n4. End discrimination",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/24395-muugy5.jpg",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2015-12-11T09:09:44.182000Z",
            "modified_at": "2017-08-22T10:19:44.924376Z",
            "private": false,
            "default_share_email": 0,
            "member_count": 0,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 7,
            "require_approval_to_join": false,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 465,
            "official": false
        },
        {
            "id": 113,
            "url": "https://api.represent.me/api/groups/113/",
            "name": "Welsh Tenants",
            "slug": "welsh-tenants",
            "parent": null,
            "desc": "Our mission is to enhance and promote the rights, representations and housing standards of people who rent their home in Wales\nSupport Us, if want to join the collective voice of tenants",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/daa1d5e9-4740-4bed-9339-43c931008886.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-12-08T18:57:23.011548Z",
            "modified_at": "2016-12-08T18:57:23.156118Z",
            "private": false,
            "default_share_email": 0,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": true,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": false,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 101,
            "url": "https://api.represent.me/api/groups/101/",
            "name": "Nederlands parlement",
            "slug": "nederlands-parlement",
            "parent": null,
            "desc": "Met voorstellen, moties en amendementen uit de tweede kamer.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/9712dee9-00a8-43c7-9173-47b7f4caa10c.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-09-24T22:35:37.597757Z",
            "modified_at": "2016-09-24T22:35:37.605642Z",
            "private": false,
            "default_share_email": 2,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": false,
            "secret": false,
            "canAskDefault": false,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 105,
            "url": "https://api.represent.me/api/groups/105/",
            "name": "SURF Survivors Fund",
            "slug": "surf-survivors-fund",
            "parent": null,
            "desc": "Survivors Fund (SURF) works to deliver, fundraise and advocate for programmes that rebuild the lives of survivors of the genocide and the most vulnerable, that empower them and that foster sustainable integration and development in Rwanda.\n\nThis Represent group is to help us work with survivors and supporters to deliver our mission.\n\nhttp://survivors-fund.org.uk/  \nEmail: surfenquiries(at)survivors-fund.org.uk",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/def373cc-4c94-49f2-8b12-3e0f27b250b0.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-10-18T10:01:40.771109Z",
            "modified_at": "2016-10-18T10:07:42.499866Z",
            "private": true,
            "default_share_email": 0,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": false,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 107,
            "url": "https://api.represent.me/api/groups/107/",
            "name": "KKS AlfaBeta",
            "slug": "kks-alfabeta",
            "parent": null,
            "desc": "Krājaizdevu sabiedrības Alfa Beta biedru diskusijas un balsošanas platforma.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/ab61ab8e-f3ac-4794-9aee-4266e7087ec3.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-10-24T09:29:36.724359Z",
            "modified_at": "2016-10-24T09:29:36.733608Z",
            "private": true,
            "default_share_email": 2,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 108,
            "url": "https://api.represent.me/api/groups/108/",
            "name": "Lewes Liberal Democrats",
            "slug": "lewes-liberal-democrats",
            "parent": null,
            "desc": "Members of Liberal Democrats in the Lewes constituency",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/3c91651f-46d9-40b7-ba2e-f84e7d177324.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-11-06T19:08:34.326694Z",
            "modified_at": "2016-11-06T19:08:34.334286Z",
            "private": true,
            "default_share_email": 2,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": true,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 97,
            "url": "https://api.represent.me/api/groups/97/",
            "name": "Promoting Change family",
            "slug": "promoting-change-family",
            "parent": null,
            "desc": "To create a conversation to explore how we would like the Promoting Change network to grow.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/f529a0a0-ad0a-4632-8023-9ca5b2458728.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-09-07T10:51:55.047168Z",
            "modified_at": "2016-11-03T21:09:41.949026Z",
            "private": true,
            "default_share_email": 2,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": true,
            "requested_join": false,
            "questions_count": 3,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 95,
            "url": "https://api.represent.me/api/groups/95/",
            "name": "The People's Parliament UK",
            "slug": "the-peoples-parliament-uk",
            "parent": null,
            "desc": "The People's Parliament UK seeks to redress the balance within the British political system, and to restore the people's sovereign right to govern themselves.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/b6b8827b-5f6b-47bf-b6de-442ed12d7b62.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-08-27T15:11:46.126500Z",
            "modified_at": "2016-08-27T15:11:46.134096Z",
            "private": false,
            "default_share_email": 2,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": false,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 68,
            "url": "https://api.represent.me/api/groups/68/",
            "name": "The Co-operative Party",
            "slug": "the-co-operative-party",
            "parent": null,
            "desc": "",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/e953caf7-0d53-4310-a405-ae8987042ad2.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-07-08T14:12:27.239107Z",
            "modified_at": "2016-07-08T14:12:27.246836Z",
            "private": true,
            "default_share_email": 0,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": true,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": false,
            "votes_count": 0,
            "official": false
        }
    ]
}