A view to create, edit and delete Question Collections

check out http://localhost:8000/api/questions/?in_collections__parent=2 to see questions associated with collection 2

or http://localhost:8000/api/question_colection_items/?parent=2 to see the connections

to copy someone's collection to yourself:

http://localhost:8000/api/question_colections/ID/copy/

to update order of items:

http://localhost:8000/api/question_colections/ID/update_order/

Request body for updating order should looks like this:

{
    "items": [
        {"id": item.id, "order": order},
        {"id": item.id, "order": order}
    ]
}
GET /api/question_collections/?ordering=-item_count
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 70,
    "next": "https://api.represent.me/api/question_collections/?ordering=-item_count&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 127,
            "url": "https://api.represent.me/api/question_collections/127/",
            "user_url": "https://api.represent.me/api/users/17763/",
            "name": "Take our in-depth quiz. Make sure your next MP represents you.",
            "user": {
                "id": 17763,
                "username": "questionsbyrepresent",
                "first_name": "Questions",
                "last_name": "by Represent",
                "url": "https://api.represent.me/api/users/17763/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/cc7bdcfd-ae42-4c69-b02d-0fb26129820c.png",
                "age": 45,
                "bio": "",
                "created_at": "2017-05-22T13:58:29Z",
                "modified_at": "2019-04-15T15:54:57.227687Z",
                "is_deleted": false,
                "last_answer_time": "2017-06-05T16:30:02.921000Z",
                "politician": null,
                "politician_info": null,
                "is_email_verified": true,
                "is_admin_verified": true,
                "is_facebook_verified": false,
                "is_google_verified": false,
                "is_twitter_verified": false,
                "is_linkedin_verified": false,
                "is_stripe_verified": false,
                "verification_count": 0,
                "verification_score": 100,
                "count_questions": 8,
                "count_votes": 4,
                "count_question_votes": 1,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 3,
                "count_group_memberships": 1,
                "count_following_tags": 1,
                "count_comments": 0,
                "count_following_users": 2,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2017-05-25T08:52:40Z",
            "modified_at": "2017-06-05T15:03:53.226669Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=127",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/8b3c3e76-bb09-44f0-bfaa-440696cb589b.png",
            "desc": "Based on the key issues and party manifestos find which party best matches your values. Whoever wins we'll let your constituency MP know what you care about.",
            "username": "questionsbyrepresent",
            "question_count": 122,
            "item_count": 137,
            "end_text": "Thank you. We will ensure your new MP - whoever they are! - knows what you care about, and will help you work with them throughout the next 5 years with votes and discussion.",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 122,
            "url": "https://api.represent.me/api/question_collections/122/",
            "user_url": "https://api.represent.me/api/users/17763/",
            "name": "What should guide a coalition?",
            "user": {
                "id": 17763,
                "username": "questionsbyrepresent",
                "first_name": "Questions",
                "last_name": "by Represent",
                "url": "https://api.represent.me/api/users/17763/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/cc7bdcfd-ae42-4c69-b02d-0fb26129820c.png",
                "age": 45,
                "bio": "",
                "created_at": "2017-05-22T13:58:29Z",
                "modified_at": "2019-04-15T15:54:57.227687Z",
                "is_deleted": false,
                "last_answer_time": "2017-06-05T16:30:02.921000Z",
                "politician": null,
                "politician_info": null,
                "is_email_verified": true,
                "is_admin_verified": true,
                "is_facebook_verified": false,
                "is_google_verified": false,
                "is_twitter_verified": false,
                "is_linkedin_verified": false,
                "is_stripe_verified": false,
                "verification_count": 0,
                "verification_score": 100,
                "count_questions": 8,
                "count_votes": 4,
                "count_question_votes": 1,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 3,
                "count_group_memberships": 1,
                "count_following_tags": 1,
                "count_comments": 0,
                "count_following_users": 2,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2017-05-25T08:52:40Z",
            "modified_at": "2017-06-09T09:10:45.188385Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=122",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/politicalparties2.jpg",
            "desc": "Questions are based on the party manifestos - whoever wins, we'll anonymously publish the results and share with MPs, press, and more!",
            "username": "questionsbyrepresent",
            "question_count": 121,
            "item_count": 136,
            "end_text": "Thank you. We will ensure your new MP - whoever they are! - knows what you care about, and will help you work with them throughout the next 5 years with votes and discussion.",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 121,
            "url": "https://api.represent.me/api/question_collections/121/",
            "user_url": "https://api.represent.me/api/users/17687/",
            "name": "The Green Party of England & Wales 2017 manifesto",
            "user": {
                "id": 17687,
                "username": "greenpartypolicies",
                "first_name": "Green",
                "last_name": "Party (Eng & Wal) Policies",
                "url": "https://api.represent.me/api/users/17687/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/03c8d0db-89f9-4618-9e22-26290e3b0f87.png",
                "age": 29,
                "bio": "The Green Party of England & Wales isn't on Represent yet. Their answers are based on their 2017 manifesto and communications.",
                "created_at": "2017-05-16T09:26:13.665828Z",
                "modified_at": "2019-04-15T15:54:58.693235Z",
                "is_deleted": false,
                "last_answer_time": "2017-06-01T16:41:56.095900Z",
                "politician": null,
                "politician_info": null,
                "is_email_verified": true,
                "is_admin_verified": false,
                "is_facebook_verified": false,
                "is_google_verified": false,
                "is_twitter_verified": false,
                "is_linkedin_verified": false,
                "is_stripe_verified": false,
                "verification_count": 1,
                "verification_score": 59,
                "count_questions": 17,
                "count_votes": 93,
                "count_question_votes": 84,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 9,
                "count_group_memberships": 1,
                "count_following_tags": 2,
                "count_comments": 0,
                "count_following_users": 1,
                "count_followers": 25,
                "karma": 0
            },
            "created_at": "2017-05-23T15:04:40.537546Z",
            "modified_at": "2017-05-24T08:57:39.095973Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=121",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/989695d7-6f42-41e7-bc9e-c045892a3ac9.png",
            "desc": "To explore the manifesto in full go to: https://www.greenparty.org.uk/green-guarantee/",
            "username": "greenpartypolicies",
            "question_count": 50,
            "item_count": 59,
            "end_text": "Thank you. To explore the manifesto in full go to: https://www.greenparty.org.uk/green-guarantee/",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 128,
            "url": "https://api.represent.me/api/question_collections/128/",
            "user_url": "https://api.represent.me/api/users/18487/",
            "name": "Gloucester's Say",
            "user": {
                "id": 18487,
                "username": "DanielJosephWoolf",
                "first_name": "Daniel",
                "last_name": "Woolf",
                "url": "https://api.represent.me/api/users/18487/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_18487.jpg",
                "age": 35,
                "bio": "",
                "created_at": "2017-06-04T18:04:35.666466Z",
                "modified_at": "2019-04-15T15:54:58.880361Z",
                "is_deleted": false,
                "last_answer_time": "2017-06-05T23:18:39.862540Z",
                "politician": 1471,
                "politician_info": {
                    "id": 1471,
                    "ID": null,
                    "name": "Daniel Woolf",
                    "sort_name": "",
                    "email": "woolfman84@hotmail.co.uk",
                    "twitter": "@danielwoolfUKIP",
                    "facebook": "",
                    "group": "UKIP",
                    "group_id": "",
                    "area_id": "45222",
                    "area": "Gloucester",
                    "chamber": "",
                    "term": "",
                    "start_date": "2017",
                    "end_date": null,
                    "image": null,
                    "gender": "",
                    "country": "59",
                    "type": "candidate",
                    "linkedin": null,
                    "facebook_page": "https://www.facebook.com/UKIPDanielWoolf/",
                    "fundraising_page": null,
                    "cv": null,
                    "statement": "Standing to be Gloucester's voice in Westminster , not Westminster's voice in Gloucester. Only Leave candidate, only under 35 candidate, only Ethnic candidate"
                },
                "is_email_verified": true,
                "is_admin_verified": false,
                "is_facebook_verified": true,
                "is_google_verified": false,
                "is_twitter_verified": false,
                "is_linkedin_verified": false,
                "is_stripe_verified": false,
                "verification_count": 2,
                "verification_score": 77,
                "count_questions": 0,
                "count_votes": 251,
                "count_question_votes": 214,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 37,
                "count_group_memberships": 1,
                "count_following_tags": 1,
                "count_comments": 0,
                "count_following_users": 1,
                "count_followers": 4,
                "karma": 0
            },
            "created_at": "2017-06-05T23:22:39.594025Z",
            "modified_at": "2017-06-05T23:27:37.094718Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=128",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/1685d3b9-09d9-4fd4-ab14-809ded8e2bc4.png",
            "desc": "People of Gloucester get to represent your views",
            "username": "DanielJosephWoolf",
            "question_count": 25,
            "item_count": 25,
            "end_text": "Thank you for your time , I will do my best to represent your views",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 124,
            "url": "https://api.represent.me/api/question_collections/124/",
            "user_url": "https://api.represent.me/api/users/17711/",
            "name": "The SNP General Election 2017 manifesto",
            "user": {
                "id": 17711,
                "username": "snppolicies",
                "first_name": "Scottish National",
                "last_name": "Party Policies",
                "url": "https://api.represent.me/api/users/17711/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/40860582-6d12-4957-bbd1-5eb175c9ec82.png",
                "age": 85,
                "bio": "The Scottish National Party isn't on Represent yet. Their answers are based on their communications, policies and manifestos.",
                "created_at": "2017-05-19T11:33:12Z",
                "modified_at": "2019-04-15T15:54:56.491770Z",
                "is_deleted": false,
                "last_answer_time": "2017-06-01T16:30:31.796921Z",
                "politician": null,
                "politician_info": null,
                "is_email_verified": true,
                "is_admin_verified": false,
                "is_facebook_verified": false,
                "is_google_verified": false,
                "is_twitter_verified": false,
                "is_linkedin_verified": false,
                "is_stripe_verified": false,
                "verification_count": 1,
                "verification_score": 59,
                "count_questions": 2,
                "count_votes": 76,
                "count_question_votes": 67,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 9,
                "count_group_memberships": 1,
                "count_following_tags": 1,
                "count_comments": 0,
                "count_following_users": 1,
                "count_followers": 6,
                "karma": 0
            },
            "created_at": "2017-05-30T16:46:00.354197Z",
            "modified_at": "2017-05-30T18:43:28.728729Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=124",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/994cffaa-8d91-4b86-83b3-87f3448c5f16.png",
            "desc": "How much do your values compare with the Scottish National Party? Take this quiz to find out.",
            "username": "snppolicies",
            "question_count": 22,
            "item_count": 22,
            "end_text": "Thank you.",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 55,
            "url": "https://api.represent.me/api/question_collections/55/",
            "user_url": "https://api.represent.me/api/users/17763/",
            "name": "What do you think about democracy in the UK?",
            "user": {
                "id": 17763,
                "username": "questionsbyrepresent",
                "first_name": "Questions",
                "last_name": "by Represent",
                "url": "https://api.represent.me/api/users/17763/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/cc7bdcfd-ae42-4c69-b02d-0fb26129820c.png",
                "age": 45,
                "bio": "",
                "created_at": "2017-05-22T13:58:29Z",
                "modified_at": "2019-04-15T15:54:57.227687Z",
                "is_deleted": false,
                "last_answer_time": "2017-06-05T16:30:02.921000Z",
                "politician": null,
                "politician_info": null,
                "is_email_verified": true,
                "is_admin_verified": true,
                "is_facebook_verified": false,
                "is_google_verified": false,
                "is_twitter_verified": false,
                "is_linkedin_verified": false,
                "is_stripe_verified": false,
                "verification_count": 0,
                "verification_score": 100,
                "count_questions": 8,
                "count_votes": 4,
                "count_question_votes": 1,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 3,
                "count_group_memberships": 1,
                "count_following_tags": 1,
                "count_comments": 0,
                "count_following_users": 2,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2017-04-28T15:02:41Z",
            "modified_at": "2017-06-01T16:55:31.355037Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=55",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/42d700a1-bb28-43d7-ae09-721b6046a58b.png",
            "desc": "Have your say on the democracy you would like to see. Plus! Find out how your views compare to the main UK political parties.",
            "username": "questionsbyrepresent",
            "question_count": 19,
            "item_count": 20,
            "end_text": "Thank you!",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 130,
            "url": "https://api.represent.me/api/question_collections/130/",
            "user_url": "https://api.represent.me/api/users/17763/",
            "name": "UKIP general election 2017 manifesto",
            "user": {
                "id": 17763,
                "username": "questionsbyrepresent",
                "first_name": "Questions",
                "last_name": "by Represent",
                "url": "https://api.represent.me/api/users/17763/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/cc7bdcfd-ae42-4c69-b02d-0fb26129820c.png",
                "age": 45,
                "bio": "",
                "created_at": "2017-05-22T13:58:29Z",
                "modified_at": "2019-04-15T15:54:57.227687Z",
                "is_deleted": false,
                "last_answer_time": "2017-06-05T16:30:02.921000Z",
                "politician": null,
                "politician_info": null,
                "is_email_verified": true,
                "is_admin_verified": true,
                "is_facebook_verified": false,
                "is_google_verified": false,
                "is_twitter_verified": false,
                "is_linkedin_verified": false,
                "is_stripe_verified": false,
                "verification_count": 0,
                "verification_score": 100,
                "count_questions": 8,
                "count_votes": 4,
                "count_question_votes": 1,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 3,
                "count_group_memberships": 1,
                "count_following_tags": 1,
                "count_comments": 0,
                "count_following_users": 2,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2017-06-06T06:02:21Z",
            "modified_at": "2017-06-06T11:36:27.526493Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=130",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/447146ea-64ff-4084-a5e0-5e9ca6a50a59.png",
            "desc": "Find out how your values compare with key points from the UK Independence Party manifesto.",
            "username": "questionsbyrepresent",
            "question_count": 18,
            "item_count": 18,
            "end_text": "Thank you.",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 118,
            "url": "https://api.represent.me/api/question_collections/118/",
            "user_url": "https://api.represent.me/api/users/4680/",
            "name": "Women's equality",
            "user": {
                "id": 4680,
                "username": "kcorrick",
                "first_name": "Kathryn",
                "last_name": "Corrick",
                "url": "https://api.represent.me/api/users/4680/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_4680_R4815ev.jpg",
                "age": 45,
                "bio": "",
                "created_at": "2016-01-03T09:29:59Z",
                "modified_at": "2019-10-31T11:13:03.014276Z",
                "is_deleted": false,
                "last_answer_time": "2019-06-06T16:17:08.901183Z",
                "politician": null,
                "politician_info": null,
                "is_email_verified": true,
                "is_admin_verified": true,
                "is_facebook_verified": true,
                "is_google_verified": false,
                "is_twitter_verified": false,
                "is_linkedin_verified": false,
                "is_stripe_verified": false,
                "verification_count": 3,
                "verification_score": 100,
                "count_questions": 191,
                "count_votes": 934,
                "count_question_votes": 822,
                "count_friends": 47,
                "count_comment_votes": 43,
                "count_choice_votes": 112,
                "count_group_memberships": 18,
                "count_following_tags": 14,
                "count_comments": 47,
                "count_following_users": 227,
                "count_followers": 32,
                "karma": 2
            },
            "created_at": "2017-05-18T10:39:47.524380Z",
            "modified_at": "2017-05-24T14:09:11.456111Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=118",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/c48020d8-fe28-40c1-9107-d26c52e84d08.png",
            "desc": "Where do you stand?",
            "username": "kcorrick",
            "question_count": 16,
            "item_count": 16,
            "end_text": "Thank you",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 125,
            "url": "https://api.represent.me/api/question_collections/125/",
            "user_url": "https://api.represent.me/api/users/17763/",
            "name": "Should the UK increase taxes?",
            "user": {
                "id": 17763,
                "username": "questionsbyrepresent",
                "first_name": "Questions",
                "last_name": "by Represent",
                "url": "https://api.represent.me/api/users/17763/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/cc7bdcfd-ae42-4c69-b02d-0fb26129820c.png",
                "age": 45,
                "bio": "",
                "created_at": "2017-05-22T13:58:29Z",
                "modified_at": "2019-04-15T15:54:57.227687Z",
                "is_deleted": false,
                "last_answer_time": "2017-06-05T16:30:02.921000Z",
                "politician": null,
                "politician_info": null,
                "is_email_verified": true,
                "is_admin_verified": true,
                "is_facebook_verified": false,
                "is_google_verified": false,
                "is_twitter_verified": false,
                "is_linkedin_verified": false,
                "is_stripe_verified": false,
                "verification_count": 0,
                "verification_score": 100,
                "count_questions": 8,
                "count_votes": 4,
                "count_question_votes": 1,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 3,
                "count_group_memberships": 1,
                "count_following_tags": 1,
                "count_comments": 0,
                "count_following_users": 2,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2017-06-03T17:16:09.044677Z",
            "modified_at": "2017-06-03T17:25:25.628262Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=125",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/f6c14168-60c4-45f9-a1c2-8d7b5e0fa914.png",
            "desc": "Each of the political parties is promising something different on tax. Find out how you compare. Do you want to live in a low spend low tax economy or do you think taxes should rise to pay for public services?",
            "username": "questionsbyrepresent",
            "question_count": 14,
            "item_count": 14,
            "end_text": "Thank you.",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 75,
            "url": "https://api.represent.me/api/question_collections/75/",
            "user_url": "https://api.represent.me/api/users/17763/",
            "name": "Where do you stand on immigration?",
            "user": {
                "id": 17763,
                "username": "questionsbyrepresent",
                "first_name": "Questions",
                "last_name": "by Represent",
                "url": "https://api.represent.me/api/users/17763/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/cc7bdcfd-ae42-4c69-b02d-0fb26129820c.png",
                "age": 45,
                "bio": "",
                "created_at": "2017-05-22T13:58:29Z",
                "modified_at": "2019-04-15T15:54:57.227687Z",
                "is_deleted": false,
                "last_answer_time": "2017-06-05T16:30:02.921000Z",
                "politician": null,
                "politician_info": null,
                "is_email_verified": true,
                "is_admin_verified": true,
                "is_facebook_verified": false,
                "is_google_verified": false,
                "is_twitter_verified": false,
                "is_linkedin_verified": false,
                "is_stripe_verified": false,
                "verification_count": 0,
                "verification_score": 100,
                "count_questions": 8,
                "count_votes": 4,
                "count_question_votes": 1,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 3,
                "count_group_memberships": 1,
                "count_following_tags": 1,
                "count_comments": 0,
                "count_following_users": 2,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2017-05-08T11:16:41Z",
            "modified_at": "2017-06-03T17:02:39.911166Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=75",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/feb44de2-7311-456c-9731-bb1943fe7fc1.png",
            "desc": "Theresa May would like to cut immigration to \"sustainable levels... and we believe that means tens of thousands\". SNP leader, Nicola Sturgeon, says there needs to be an honest conversation about the need to attract skilled labour to allow the economy to flourish. Ukip would like a 'one in one out' policy.",
            "username": "questionsbyrepresent",
            "question_count": 14,
            "item_count": 14,
            "end_text": "Thank you!",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        }
    ]
}