A view to create, edit and delete Questions connections to your Collections

parent is the collection the question is connected to

Get ordered items:

http://localhost:8000/api/question_collection_items/?parent=21&ordering=order

Types

    'Q': 'Question', (content_object: question)
    'B': 'Break', (content_object: break)

POST

To add new break to the collection use this request parameters:

    "content_object": [{"text":"break text", "title":"break title"}],
    "type": "B",
    "object_id": null

To add existing question to the collection use this request parameters:

    "content_object": null,
    "type": "Q",
    "object_id": question_id
GET /api/question_collection_items/11/
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 11,
    "url": "https://api.represent.me/api/question_collection_items/11/",
    "parent": 1,
    "parent_url": "https://api.represent.me/api/question_collections/1/",
    "created_at": "2016-06-19T16:10:12.263426Z",
    "modified_at": "2017-03-08T10:32:36.030255Z",
    "start_at": null,
    "end_at": null,
    "order": 3,
    "content_object": {
        "id": 1352,
        "url": "https://api.represent.me/api/questions/1352/",
        "question": "Should the Ukraine be accepted into the EU?",
        "slug": "should-the-ukraine-be-accepted-into-the-eu",
        "my_vote": [],
        "user": {
            "id": 6,
            "username": "represent_admin",
            "first_name": "Ed",
            "last_name": "Dowding",
            "url": "https://api.represent.me/api/users/6/",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/21665-1b6h8j.png",
            "age": 42,
            "follow": [],
            "bio": "This is Team Represent! We want to modernise democracy so that together we can be do great things! Sometimes ask provocative questions!",
            "last_answer_time": "2019-06-13T18:15:23.872299Z",
            "politician": null,
            "politician_info": null,
            "verification_score": 70,
            "count_questions": 807,
            "count_votes": 325,
            "count_question_votes": 319,
            "count_friends": 0,
            "count_comment_votes": 17,
            "count_choice_votes": 6,
            "count_group_memberships": 11,
            "count_following_tags": 7,
            "count_comments": 11,
            "count_following_users": 0,
            "count_followers": 20310,
            "karma": 24
        },
        "tags": [
            {
                "id": 6025,
                "tag": {
                    "id": 769,
                    "text": "important",
                    "followers_count": 0,
                    "questions_count": 1680,
                    "votes_count": 720783
                },
                "created_at": "2016-12-10T07:31:47.249746Z",
                "modified_at": "2017-05-05T18:31:37.251968Z",
                "direct_vote_count": 5,
                "direct_value": 2.6,
                "direct_sum": -2.0,
                "direct_heat": 0.833333333333333,
                "direct_consensus": 0.0399999999999998,
                "direct_skipped": 0,
                "direct_minimum": 3,
                "direct_low": 0,
                "direct_medium": 0,
                "direct_high": 0,
                "direct_maximum": 2
            },
            {
                "id": 2284,
                "tag": {
                    "id": 5,
                    "text": "europe",
                    "followers_count": 375,
                    "questions_count": 63,
                    "votes_count": 21141
                },
                "created_at": "2016-03-20T04:29:55.544748Z",
                "modified_at": "2016-03-29T15:55:18.174601Z",
                "direct_vote_count": 0,
                "direct_value": 0.0,
                "direct_sum": 0.0,
                "direct_heat": 0.0,
                "direct_consensus": 0.0,
                "direct_skipped": 0,
                "direct_minimum": 0,
                "direct_low": 0,
                "direct_medium": 0,
                "direct_high": 0,
                "direct_maximum": 0
            },
            {
                "id": 2283,
                "tag": {
                    "id": 791,
                    "text": "European Union",
                    "followers_count": 6,
                    "questions_count": 80,
                    "votes_count": 158901
                },
                "created_at": "2016-03-20T04:29:55.539478Z",
                "modified_at": "2016-03-29T15:55:18.164896Z",
                "direct_vote_count": 0,
                "direct_value": 0.0,
                "direct_sum": 0.0,
                "direct_heat": 0.0,
                "direct_consensus": 0.0,
                "direct_skipped": 0,
                "direct_minimum": 0,
                "direct_low": 0,
                "direct_medium": 0,
                "direct_high": 0,
                "direct_maximum": 0
            }
        ],
        "choices": [],
        "description": "",
        "perodic_repeat_interval": null,
        "ogImage": null,
        "subtype": "likert",
        "topic": 791,
        "topic_info": {
            "id": 791,
            "text": "European Union",
            "followers_count": 6,
            "questions_count": 80,
            "votes_count": 158901
        },
        "group": null,
        "geo": null,
        "geo_info": null,
        "group_url": null,
        "geo_url": null,
        "links": [
            {
                "id": 80,
                "url": "https://api.represent.me/api/question_links/80/",
                "link": "https://en.wikipedia.org/wiki/Ukraine%E2%80%93European_Union_relations",
                "desc": "In 2012, the EU initialled deals on free trade and political association with Ukraine; however, EU leaders stated that these agreements would not be ratified unless Ukraine addresses concerns over a \"stark deterioration of democracy and the rule of law\", including the imprisonment of Yulia Tymoshenko and Yuriy Lutsenko in 2011 and 2012.",
                "thumbnailUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/European_Union_Ukraine_Locator.svg/250px-European_Union_Ukraine_Locator.svg.png",
                "title": "Ukraine-European Union relations - Wikipedia, the free encyclopedia"
            }
        ],
        "start_at": null,
        "end_at": null,
        "publish": true,
        "count_comments": 1,
        "count_comments_suggestion": 0,
        "count_comments_reason": 1,
        "count_comments_info": 0,
        "group_name": null,
        "direct_vote_count": 125,
        "direct_value": 3.104,
        "direct_sum": 13.0,
        "direct_heat": 5.28610354223433,
        "direct_consensus": 0.520768,
        "direct_skipped": 8,
        "direct_minimum": 15,
        "direct_low": 22,
        "direct_medium": 39,
        "direct_high": 33,
        "direct_maximum": 16,
        "created_at": "2015-09-08T08:40:49.488000Z",
        "modified_at": "2017-09-01T11:13:17.485139Z",
        "liquid_vote_count": 125,
        "liquid_value": 3.104,
        "liquid_sum": 13.0,
        "liquid_heat": 5.28610354223433,
        "liquid_consensus": 0.096,
        "liquid_skipped": 8,
        "liquid_minimum": 15,
        "liquid_low": 22,
        "liquid_medium": 39,
        "liquid_high": 33,
        "liquid_maximum": 16,
        "polarisation": 0.0848528137423857
    },
    "type": "Q",
    "object_id": 1352,
    "active": true
}