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=-name
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=-name&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 152,
            "url": "https://api.represent.me/api/question_collections/152/",
            "user_url": "https://api.represent.me/api/users/20839/",
            "name": "Your work day",
            "user": {
                "id": 20839,
                "username": "alexwilks88",
                "first_name": "Alex",
                "last_name": "",
                "url": "https://api.represent.me/api/users/20839/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/prof_initials_ac2686f143354de4997ae37388f75da4.png",
                "age": 30,
                "bio": "",
                "created_at": "2019-10-25T11:19:30.507717Z",
                "modified_at": "2019-10-26T12:29:38.680412Z",
                "is_deleted": false,
                "last_answer_time": "2019-10-26T12:29:38.679762Z",
                "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": 1,
                "count_votes": 26,
                "count_question_votes": 22,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 4,
                "count_group_memberships": 1,
                "count_following_tags": 1,
                "count_comments": 0,
                "count_following_users": 1,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2019-10-26T12:26:19.719762Z",
            "modified_at": "2019-10-26T12:29:33.348924Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=152",
            "photo": null,
            "desc": "Work life in London",
            "username": "alexwilks88",
            "question_count": 1,
            "item_count": 1,
            "end_text": null,
            "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": 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
        },
        {
            "id": 24,
            "url": "https://api.represent.me/api/question_collections/24/",
            "user_url": "https://api.represent.me/api/users/4680/",
            "name": "Where do you stand on Heathrow's expansion?",
            "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": "2016-10-27T10:03:41Z",
            "modified_at": "2017-03-08T10:32:39.480753Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=24",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/584892a2-ed47-4060-9d4d-bd0bb2cc396c.png",
            "desc": "The UK government [wants](https://www.gov.uk/government/news/government-decides-on-new-runway-at-heathrow) to expand Heathrow to create jobs, create choice for passengers, and boost the economy.  \r\n\r\nBut it's not a done-deal. A public consultation will be held before MPs vote on it late next year or early 2018. Here are a few questions to help you make up your mind. We'll present the results to government and Parliament to make sure you are heard. \r\n\r\n*[Photo credit Chris Price: CC-BY-ND v2](www.flickr.com/photos/pricey/3023714717/)*",
            "username": "kcorrick",
            "question_count": 20,
            "item_count": 0,
            "end_text": "",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 131,
            "url": "https://api.represent.me/api/question_collections/131/",
            "user_url": "https://api.represent.me/api/users/41/",
            "name": "When do we go nuclear?",
            "user": {
                "id": 41,
                "username": "gustavo montesdeoca_montes de",
                "first_name": "Gustavo",
                "last_name": "Montes De Oca",
                "url": "https://api.represent.me/api/users/41/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/1434630755357.jpg",
                "age": 39,
                "bio": "",
                "created_at": "2015-02-06T00:38:58.056000Z",
                "modified_at": "2019-04-15T15:54:56.010257Z",
                "is_deleted": false,
                "last_answer_time": "2017-06-28T16:59:20.981465Z",
                "politician": null,
                "politician_info": null,
                "is_email_verified": true,
                "is_admin_verified": false,
                "is_facebook_verified": false,
                "is_google_verified": true,
                "is_twitter_verified": false,
                "is_linkedin_verified": false,
                "is_stripe_verified": false,
                "verification_count": 2,
                "verification_score": 77,
                "count_questions": 48,
                "count_votes": 416,
                "count_question_votes": 389,
                "count_friends": 0,
                "count_comment_votes": 1,
                "count_choice_votes": 27,
                "count_group_memberships": 4,
                "count_following_tags": 7,
                "count_comments": 1,
                "count_following_users": 2,
                "count_followers": 2,
                "karma": 0
            },
            "created_at": "2017-06-07T12:08:24.726859Z",
            "modified_at": "2017-06-07T13:27:23.275175Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=131",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/10db4869-58c0-46e1-8e34-c236eb09670d.png",
            "desc": "Nuclear weapons have been an unexamined part of the status quo for a long time. Their advocates say that they offer us security and clout on the world stage. Their detractors say that they are an unneccesary cost, a safety risk, and a moral evil.\n\nIf we are to continue to have these weapons as part of our arsenal it is important that we know exactly under what conditions we are comfortable with mass killings, ecosystem destruction, global destabilisation and endangering our own communities.\n\nThis is an open survey so feel free to add questions ( I have a bias that would be good to overcome) - or ask me to.",
            "username": "gustavo montesdeoca_montes de",
            "question_count": 7,
            "item_count": 7,
            "end_text": "If we are going to have these weapons of mass destruction it is vital that we know under what conditions we are comfortable with using them. They have been taken for granted for a long time. Share this with your friends and that uncle you always disagree with.",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 147,
            "url": "https://api.represent.me/api/question_collections/147/",
            "user_url": "https://api.represent.me/api/users/20640/",
            "name": "What's the Brexit plan?",
            "user": {
                "id": 20640,
                "username": "aspiers",
                "first_name": "Adam",
                "last_name": "Spiers",
                "url": "https://api.represent.me/api/users/20640/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/9be36f7d-16c5-4e08-9e15-52abe76575c8.png",
                "age": 44,
                "bio": "",
                "created_at": "2018-08-29T12:13:46.372945Z",
                "modified_at": "2019-04-15T15:52:51.396966Z",
                "is_deleted": false,
                "last_answer_time": "2018-11-23T22:16:01.188891Z",
                "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": 0,
                "count_votes": 29,
                "count_question_votes": 13,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 16,
                "count_group_memberships": 1,
                "count_following_tags": 1,
                "count_comments": 0,
                "count_following_users": 1,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2016-12-07T12:35:37Z",
            "modified_at": "2018-09-03T18:29:05.896163Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=147",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/4dff625a-cc50-4a34-9a95-e5148a3016fc.png",
            "desc": "Since Theresa May isn't giving us a plan, tell us yours!",
            "username": "aspiers",
            "question_count": 16,
            "item_count": 0,
            "end_text": "",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 29,
            "url": "https://api.represent.me/api/question_collections/29/",
            "user_url": "https://api.represent.me/api/users/7873/",
            "name": "What's the Brexit plan?",
            "user": {
                "id": 7873,
                "username": "AlexWilks",
                "first_name": "Alex",
                "last_name": "Wilks",
                "url": "https://api.represent.me/api/users/7873/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_7873.jpg",
                "age": 31,
                "bio": "",
                "created_at": "2016-12-07T12:24:05.041348Z",
                "modified_at": "2019-04-15T15:54:33.174982Z",
                "is_deleted": false,
                "last_answer_time": "2017-08-28T17:29:02.434073Z",
                "politician": null,
                "politician_info": null,
                "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": 2,
                "count_votes": 169,
                "count_question_votes": 145,
                "count_friends": 2,
                "count_comment_votes": 0,
                "count_choice_votes": 24,
                "count_group_memberships": 4,
                "count_following_tags": 1,
                "count_comments": 0,
                "count_following_users": 1,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2016-12-07T12:35:37Z",
            "modified_at": "2017-03-08T10:32:40.640663Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=29",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/4dff625a-cc50-4a34-9a95-e5148a3016fc.png",
            "desc": "Since Theresa May isn't giving us a plan, tell us yours!",
            "username": "AlexWilks",
            "question_count": 16,
            "item_count": 0,
            "end_text": "",
            "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": 14,
            "url": "https://api.represent.me/api/question_collections/14/",
            "user_url": "https://api.represent.me/api/users/7/",
            "name": "What should America do before 2020?",
            "user": {
                "id": 7,
                "username": "eddowding",
                "first_name": "Ed",
                "last_name": "Dowding",
                "url": "https://api.represent.me/api/users/7/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_7_kD3OzJV.jpg",
                "age": 42,
                "bio": "Eventually, everything will be recognised as priceless.",
                "created_at": "2015-01-31T09:10:43.588000Z",
                "modified_at": "2019-11-12T17:37:57.519343Z",
                "is_deleted": false,
                "last_answer_time": "2019-10-26T20:41:22.076275Z",
                "politician": null,
                "politician_info": null,
                "is_email_verified": true,
                "is_admin_verified": true,
                "is_facebook_verified": true,
                "is_google_verified": true,
                "is_twitter_verified": true,
                "is_linkedin_verified": true,
                "is_stripe_verified": false,
                "verification_count": 7,
                "verification_score": 100,
                "count_questions": 219,
                "count_votes": 2120,
                "count_question_votes": 1925,
                "count_friends": 162,
                "count_comment_votes": 106,
                "count_choice_votes": 195,
                "count_group_memberships": 37,
                "count_following_tags": 18,
                "count_comments": 76,
                "count_following_users": 132,
                "count_followers": 68,
                "karma": 120
            },
            "created_at": "2016-07-31T16:59:14.347681Z",
            "modified_at": "2017-03-08T10:32:38.649640Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=14",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/27641e20-124b-4aaa-adcb-5a5ad4802931.png",
            "desc": "The first few years of a new Presidency are the most important because they set the tone for the years to come. What would you like the next President to do?",
            "username": "eddowding",
            "question_count": 9,
            "item_count": 0,
            "end_text": null,
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 34,
            "url": "https://api.represent.me/api/question_collections/34/",
            "user_url": "https://api.represent.me/api/users/4680/",
            "name": "What do you think about social care?",
            "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-02-10T15:07:59.208007Z",
            "modified_at": "2017-03-08T10:32:41.407798Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=34",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/32f8bcab-ae69-4da2-af87-53d58960e466.png",
            "desc": "If we want a stronger local democracy in the UK, we all need to get involved in making it happen – wherever we are. Working with Interests.me http://interests.me and [Not Westminster](https://notinwestminster.wordpress.com/) we are experimenting how to best reach as many people to let them have their say through local groups.  \n\nTake part in this short set of questions on what you think about social care. If you live in Surry, we will be contacting the council on the results. Social care has been in the news lately, with Surrey County Council proposing - and then cancelling - a referendum on increasing council tax by 15% to fund social care.\n\nWhy is this an experiment?\nWe are putting the word out about this survey through local groups rather than directly to residents. We aim to see if community groups can help act as intermediaries between residents and councils, and play a greater part in the democratic process. By participating you will be proving the importance of community groups in strengthening local democracy.",
            "username": "kcorrick",
            "question_count": 9,
            "item_count": 0,
            "end_text": "Thank you for all your responses. We will publish the results of the questions and the experiment in using local groups to widen how many people can have a say. If you live in Surrey we will be contacting them with the results",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        }
    ]
}