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/4/
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 4,
    "url": "https://api.represent.me/api/question_collection_items/4/",
    "parent": 1,
    "parent_url": "https://api.represent.me/api/question_collections/1/",
    "created_at": "2016-06-19T16:07:03.040981Z",
    "modified_at": "2017-03-08T10:32:35.910801Z",
    "start_at": null,
    "end_at": null,
    "order": 8,
    "content_object": {
        "id": 193,
        "url": "https://api.represent.me/api/questions/193/",
        "question": "Start a Scottish Pound, which can only be used in Scotland.",
        "slug": "start-a-scottish-pound-which-can-only-be-used-in-scotland",
        "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": 5962,
                "tag": {
                    "id": 769,
                    "text": "important",
                    "followers_count": 0,
                    "questions_count": 1680,
                    "votes_count": 720783
                },
                "created_at": "2016-12-08T13:34:17.201948Z",
                "modified_at": "2017-05-04T20:43:53.156875Z",
                "direct_vote_count": 2,
                "direct_value": 3.0,
                "direct_sum": 0.0,
                "direct_heat": 0.382165605095541,
                "direct_consensus": 0.0,
                "direct_skipped": 0,
                "direct_minimum": 1,
                "direct_low": 0,
                "direct_medium": 0,
                "direct_high": 0,
                "direct_maximum": 1
            },
            {
                "id": 309,
                "tag": {
                    "id": 15,
                    "text": "scotland",
                    "followers_count": 13,
                    "questions_count": 28,
                    "votes_count": 18096
                },
                "created_at": "2016-03-20T04:29:35.573132Z",
                "modified_at": "2016-03-29T15:54:47.917881Z",
                "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": 15,
        "topic_info": {
            "id": 15,
            "text": "scotland",
            "followers_count": 13,
            "questions_count": 28,
            "votes_count": 18096
        },
        "group": null,
        "geo": 59,
        "geo_info": {
            "id": 59,
            "ID": "GBR",
            "name": "United Kingdom",
            "m_type": "country",
            "location": {
                "type": "Point",
                "coordinates": [
                    -2.8869514831036756,
                    54.14704818919766
                ]
            },
            "members_count": 9093,
            "question_count": 923,
            "created_at": "2016-03-20T04:26:45.483907Z",
            "type_description": null,
            "parent": null,
            "parent_url": null,
            "politicians": [],
            "modified_at": "2019-10-01T16:01:15.905104Z"
        },
        "group_url": null,
        "geo_url": "https://api.represent.me/api/geos/59/",
        "links": [],
        "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": 236,
        "direct_value": 2.14830508474576,
        "direct_sum": -201.0,
        "direct_heat": 5.04477611940298,
        "direct_consensus": 0.484505170927894,
        "direct_skipped": 71,
        "direct_minimum": 96,
        "direct_low": 77,
        "direct_medium": 18,
        "direct_high": 22,
        "direct_maximum": 23,
        "created_at": "2015-01-20T14:49:58.166000Z",
        "modified_at": "2017-10-12T07:44:19.416314Z",
        "liquid_vote_count": 236,
        "liquid_value": 2.14830508474576,
        "liquid_sum": -201.0,
        "liquid_heat": 5.04477611940298,
        "liquid_consensus": 0.542372881355932,
        "liquid_skipped": 71,
        "liquid_minimum": 96,
        "liquid_low": 77,
        "liquid_medium": 18,
        "liquid_high": 22,
        "liquid_maximum": 23,
        "polarisation": 0.154861142869388
    },
    "type": "Q",
    "object_id": 193,
    "active": true
}