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

{
    "count": 69,
    "next": "https://api.represent.me/api/question_collections/?format=api&ordering=-photo&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 26,
            "url": "https://api.represent.me/api/question_collections/26/?format=api",
            "user_url": "https://api.represent.me/api/users/4680/?format=api",
            "name": "Have your say on the future of schools in England",
            "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": "COO, Represent\r\n@kcorrick & @RepresentLive",
                "created_at": "2016-01-03T09:29:59Z",
                "modified_at": "2019-06-06T16:17:08.901454Z",
                "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-11-10T16:33:43Z",
            "modified_at": "2017-03-08T10:32:40.362420Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=26",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/sfe%20del.png",
            "desc": "The UK government wants to hear your thoughts on how to have more good school places in England.\r\n\r\nShould we add more grammar schools? Stop funding faith schools? Incentivise private schools to do more? \r\n\r\nHave your say here and we'll submit your answers to the Government inquiry. \r\n\r\nThe inquiry closes on 12th December 2016. More info here: https://consult.education.gov.uk/school-frameworks/schools-that-work-for-everyone/consult_view",
            "username": "kcorrick",
            "question_count": 54,
            "item_count": 0,
            "end_text": "Thank you for answering the questions in this collection. The results and a report will be sent to the Department of Education by 12 December 2016, which we will also publish.",
            "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/?format=api",
            "user_url": "https://api.represent.me/api/users/17763/?format=api",
            "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": 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": null
        },
        {
            "id": 150,
            "url": "https://api.represent.me/api/question_collections/150/?format=api",
            "user_url": "https://api.represent.me/api/users/6561/?format=api",
            "name": "just for helping poeple",
            "user": {
                "id": 6561,
                "username": "g_laures",
                "first_name": "Laures",
                "last_name": "GANDONOU",
                "url": "https://api.represent.me/api/users/6561/?format=api",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/prof_initials_1839db141fd24cb29e7cebb61947eabb.png",
                "age": 31,
                "bio": "",
                "created_at": "2016-09-03T09:51:30.420141Z",
                "modified_at": "2019-05-29T16:43:41.235492Z",
                "is_deleted": false,
                "last_answer_time": "2019-05-29T16:35:32.665197Z",
                "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": 235,
                "count_question_votes": 194,
                "count_friends": 0,
                "count_comment_votes": 2,
                "count_choice_votes": 41,
                "count_group_memberships": 1,
                "count_following_tags": 4,
                "count_comments": 2,
                "count_following_users": 4,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2018-10-12T14:58:39.209499Z",
            "modified_at": "2018-10-12T15:00:22.867945Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=150",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/fc19d5e5-1ca2-4d0b-8759-a82f4c6b3a3f.png",
            "desc": "not too loong because i do not speak english not too loong because i do not speak english not too loong because i do not speak english not too loong because i do not speak english not too loong because i do not speak english not too loong because i do not s i do not speak english not too loong because i do not speak english not too loong because i do not speak english",
            "username": "g_laures",
            "question_count": 3,
            "item_count": 3,
            "end_text": "not too loong because i do not speak english not too loong because i do not speak english not too loong because i do not speak english not too loong because i do not speak english not too loong because i do not speak english not too loong because i do not sp",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 58,
            "url": "https://api.represent.me/api/question_collections/58/?format=api",
            "user_url": "https://api.represent.me/api/users/41/?format=api",
            "name": "How to make the world a better place (according to these people)",
            "user": {
                "id": 41,
                "username": "gustavo montesdeoca_montes de",
                "first_name": "Gustavo",
                "last_name": "Montes De Oca",
                "url": "https://api.represent.me/api/users/41/?format=api",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/1434630755357.jpg",
                "age": 38,
                "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-05-04T13:51:47.079287Z",
            "modified_at": "2017-05-04T16:04:48.577296Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=58",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/fbca4513-74e7-4f3a-a5cf-f7347e432a2c.png",
            "desc": "In response to the 50th anniversary of the May Day Manifesto, the Guardian asked Ken Loach, Howard Jacobson, Jeanette Winterson, Shami Chakrabarti and others to say what they would include in a manifesto - what do you think?",
            "username": "gustavo montesdeoca_montes de",
            "question_count": 16,
            "item_count": 0,
            "end_text": null,
            "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/?format=api",
            "user_url": "https://api.represent.me/api/users/17763/?format=api",
            "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": 111,
            "url": "https://api.represent.me/api/question_collections/111/?format=api",
            "user_url": "https://api.represent.me/api/users/7/?format=api",
            "name": "How's this democracy bot working out for you?",
            "user": {
                "id": 7,
                "username": "eddowding",
                "first_name": "Ed",
                "last_name": "Dowding",
                "url": "https://api.represent.me/api/users/7/?format=api",
                "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-08-21T05:09:17.516802Z",
                "is_deleted": false,
                "last_answer_time": "2019-03-15T11:37:17.678652Z",
                "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": 2119,
                "count_question_votes": 1925,
                "count_friends": 162,
                "count_comment_votes": 106,
                "count_choice_votes": 194,
                "count_group_memberships": 37,
                "count_following_tags": 18,
                "count_comments": 76,
                "count_following_users": 132,
                "count_followers": 68,
                "karma": 120
            },
            "created_at": "2017-05-15T15:51:52.649143Z",
            "modified_at": "2017-05-15T16:22:39.685646Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=111",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/f43b7e34-5b1b-496b-a232-277944624fb0.png",
            "desc": "We want to be better, more useful, and more effective. Will you help us?",
            "username": "eddowding",
            "question_count": 8,
            "item_count": 0,
            "end_text": "Thank you, that's epic!",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 47,
            "url": "https://api.represent.me/api/question_collections/47/?format=api",
            "user_url": "https://api.represent.me/api/users/4680/?format=api",
            "name": "General election 2017: what's important to you?",
            "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": "COO, Represent\r\n@kcorrick & @RepresentLive",
                "created_at": "2016-01-03T09:29:59Z",
                "modified_at": "2019-06-06T16:17:08.901454Z",
                "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-04-18T10:31:52Z",
            "modified_at": "2017-04-25T11:20:54.439581Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=47",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/ea16f6c8-41b2-46fa-84a8-05cab2aab35a.png",
            "desc": "The Prime Minister has called a general election for 8 June. The political parties are divided on what's important and what the country thinks. What's important to you?",
            "username": "kcorrick",
            "question_count": 10,
            "item_count": 0,
            "end_text": "Thank you for taking part. We will publish the results on 19 May, before MPs go to vote.",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 149,
            "url": "https://api.represent.me/api/question_collections/149/?format=api",
            "user_url": "https://api.represent.me/api/users/13242/?format=api",
            "name": "Brexometer",
            "user": {
                "id": 13242,
                "username": "AdamSpiers",
                "first_name": "Adam",
                "last_name": "Spiers",
                "url": "https://api.represent.me/api/users/13242/?format=api",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_13242.jpg",
                "age": 43,
                "bio": "",
                "created_at": "2017-01-26T00:16:08.518770Z",
                "modified_at": "2019-04-15T15:52:58.835064Z",
                "is_deleted": false,
                "last_answer_time": "2018-10-03T18:58:50.601229Z",
                "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": 12,
                "count_votes": 88,
                "count_question_votes": 67,
                "count_friends": 0,
                "count_comment_votes": 12,
                "count_choice_votes": 21,
                "count_group_memberships": 2,
                "count_following_tags": 12,
                "count_comments": 0,
                "count_following_users": 2,
                "count_followers": 0,
                "karma": 0
            },
            "created_at": "2018-10-10T19:30:18.835471Z",
            "modified_at": "2018-10-10T19:54:08.551213Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=149",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/e1e4b7ad-4b73-44d2-8dd9-cd41369ca25f.png",
            "desc": "This is the online version of [the Brexitometers which have been held in high streets up and down the country](https://www.brexitometerhq.co.uk). Let's find out what the country really thinks about Brexit!",
            "username": "AdamSpiers",
            "question_count": 5,
            "item_count": 5,
            "end_text": "Thanks very much for participating!  Please visit [bestforbritain.org](https://www.bestforbritain.org/) to find out the latest on Brexit and get involved!",
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        },
        {
            "id": 2,
            "url": "https://api.represent.me/api/question_collections/2/?format=api",
            "user_url": "https://api.represent.me/api/users/308/?format=api",
            "name": "Post Brexit Manifesto",
            "user": {
                "id": 308,
                "username": "ollie_campbell",
                "first_name": "Oliver",
                "last_name": "Campbell",
                "url": "https://api.represent.me/api/users/308/?format=api",
                "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/8e272d45-45e7-4447-b697-cb8a8ea056d0.png",
                "age": 42,
                "bio": "",
                "created_at": "2015-03-25T08:26:47Z",
                "modified_at": "2019-04-15T15:52:57.834682Z",
                "is_deleted": false,
                "last_answer_time": "2018-01-28T10:30:15.845843Z",
                "politician": null,
                "politician_info": null,
                "is_email_verified": true,
                "is_admin_verified": false,
                "is_facebook_verified": true,
                "is_google_verified": false,
                "is_twitter_verified": true,
                "is_linkedin_verified": false,
                "is_stripe_verified": false,
                "verification_count": 3,
                "verification_score": 83,
                "count_questions": 96,
                "count_votes": 1853,
                "count_question_votes": 1694,
                "count_friends": 20,
                "count_comment_votes": 31,
                "count_choice_votes": 159,
                "count_group_memberships": 7,
                "count_following_tags": 4,
                "count_comments": 56,
                "count_following_users": 23,
                "count_followers": 8,
                "karma": 63
            },
            "created_at": "2016-06-24T12:30:36.839127Z",
            "modified_at": "2017-03-08T10:32:36.269829Z",
            "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=2",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/e1137010-2057-44e9-9d78-b5e580dbff18.png",
            "desc": "To explore what can be done with a clean slate",
            "username": "ollie_campbell",
            "question_count": 6,
            "item_count": 0,
            "end_text": null,
            "expire_at": null,
            "geo": null,
            "geo_url": null,
            "geo_info": null,
            "answered": 0.0
        }
    ]
}