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

{
    "count": 69,
    "next": "https://api.represent.me/api/question_collections/?ordering=-user&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "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": 43,
                "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": 145,
            "url": "https://api.represent.me/api/question_collections/145/",
            "user_url": "https://api.represent.me/api/users/20628/",
            "name": "teste",
            "user": {
                "id": 20628,
                "username": "bseri",
                "first_name": "Bruno",
                "last_name": "",
                "url": "https://api.represent.me/api/users/20628/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/prof_initials_63c3ff2d010d4cf8bb28a76d5fbc1bb6.png",
                "age": 20,
                "bio": "",
                "created_at": "2018-07-24T22:21:17.862326Z",
                "modified_at": "2019-04-15T15:52:37.782124Z",
                "is_deleted": false,
                "last_answer_time": "2018-07-24T22:28:04.498000Z",
                "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": 26,
                "count_question_votes": 23,
                "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": 1,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2018-07-24T22:30:32.515081Z",
            "modified_at": "2018-07-24T22:30:32.515705Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=145",
            "photo": null,
            "desc": "hello world",
            "username": "bseri",
            "question_count": 0,
            "item_count": 0,
            "end_text": null,
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 100
        },
        {
            "id": 142,
            "url": "https://api.represent.me/api/question_collections/142/",
            "user_url": "https://api.represent.me/api/users/20510/",
            "name": "Interesting",
            "user": {
                "id": 20510,
                "username": "sprem",
                "first_name": "",
                "last_name": "",
                "url": "https://api.represent.me/api/users/20510/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/prof_initials_46fa9ca5f86047689e83de46117309b7.png",
                "age": 24,
                "bio": "",
                "created_at": "2017-12-09T13:55:58.676743Z",
                "modified_at": "2019-04-15T15:52:58.759676Z",
                "is_deleted": false,
                "last_answer_time": "2018-09-22T17:30:02.605552Z",
                "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": 41,
                "count_question_votes": 38,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 3,
                "count_group_memberships": 1,
                "count_following_tags": 1,
                "count_comments": 1,
                "count_following_users": 1,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2017-12-13T12:26:35.051009Z",
            "modified_at": "2017-12-13T12:26:35.051460Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=142",
            "photo": null,
            "desc": null,
            "username": "sprem",
            "question_count": 0,
            "item_count": 0,
            "end_text": null,
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 100
        },
        {
            "id": 141,
            "url": "https://api.represent.me/api/question_collections/141/",
            "user_url": "https://api.represent.me/api/users/20439/",
            "name": "Global Challenges Collaboration",
            "user": {
                "id": 20439,
                "username": "perlmutterlabs",
                "first_name": "Aaron",
                "last_name": "Perlmutter",
                "url": "https://api.represent.me/api/users/20439/",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/73bd7fba-e73e-431b-a1e9-a489555f78ed.png",
                "age": 30,
                "bio": "https://perlmutterlabs.com/",
                "created_at": "2017-09-25T17:29:47.230065Z",
                "modified_at": "2019-04-15T15:52:28.948314Z",
                "is_deleted": false,
                "last_answer_time": "2017-10-04T21:51:18.923684Z",
                "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": 6,
                "count_votes": 43,
                "count_question_votes": 40,
                "count_friends": 0,
                "count_comment_votes": 0,
                "count_choice_votes": 3,
                "count_group_memberships": 2,
                "count_following_tags": 6,
                "count_comments": 0,
                "count_following_users": 4,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2017-09-26T12:26:45Z",
            "modified_at": "2017-09-26T16:50:14.655255Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=141",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/5a9c9346-bb8b-4482-9ba4-5bb9803ae155.png",
            "desc": "This is a survey for both members of the Global Challenges Collaboration and non-member supporters. Our public announcements will come from this Facebook page: https://www.facebook.com/GlobalChallengesCollaboration/ If you are a member of the Global Challenges Collaboration, you should also be a member of this Facebook group: https://www.facebook.com/groups/GlobalChallengesCollaboration/",
            "username": "perlmutterlabs",
            "question_count": 6,
            "item_count": 6,
            "end_text": "Thank you! Feel free to follow us on Facebook: https://www.facebook.com/GlobalChallengesCollaboration/",
            "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": 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": 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": 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": 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": null
        }
    ]
}