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

{
    "id": 2,
    "url": "https://api.represent.me/api/question_collection_items/2/",
    "parent": 1,
    "parent_url": "https://api.represent.me/api/question_collections/1/",
    "created_at": "2016-06-19T16:06:52.877911Z",
    "modified_at": "2017-03-08T10:32:35.875581Z",
    "start_at": null,
    "end_at": null,
    "order": 10,
    "content_object": {
        "id": 239,
        "url": "https://api.represent.me/api/questions/239/",
        "question": "Have the Euro AND the Pound.",
        "slug": "have-the-euro-and-the-pound",
        "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": 393,
                "tag": {
                    "id": 15,
                    "text": "scotland",
                    "followers_count": 13,
                    "questions_count": 28,
                    "votes_count": 18096
                },
                "created_at": "2016-03-20T04:29:36.396493Z",
                "modified_at": "2016-03-29T15:54:49.103269Z",
                "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": 7095,
                "tag": {
                    "id": 769,
                    "text": "important",
                    "followers_count": 0,
                    "questions_count": 1680,
                    "votes_count": 720783
                },
                "created_at": "2017-01-25T18:39:07.605035Z",
                "modified_at": "2017-01-25T18:39:07.989557Z",
                "direct_vote_count": 1,
                "direct_value": 5.0,
                "direct_sum": 2.0,
                "direct_heat": 5.0,
                "direct_consensus": 1.0,
                "direct_skipped": 0,
                "direct_minimum": 0,
                "direct_low": 0,
                "direct_medium": 0,
                "direct_high": 0,
                "direct_maximum": 1
            }
        ],
        "choices": [],
        "description": "",
        "perodic_repeat_interval": null,
        "ogImage": null,
        "subtype": "likert",
        "topic": null,
        "topic_info": null,
        "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": 2,
        "count_comments_suggestion": 0,
        "count_comments_reason": 1,
        "count_comments_info": 1,
        "group_name": null,
        "direct_vote_count": 274,
        "direct_value": 2.66423357664234,
        "direct_sum": -92.0,
        "direct_heat": 7.2636815920398,
        "direct_consensus": 0.355319942458309,
        "direct_skipped": 51,
        "direct_minimum": 79,
        "direct_low": 68,
        "direct_medium": 38,
        "direct_high": 44,
        "direct_maximum": 45,
        "created_at": "2015-01-20T14:49:58.228000Z",
        "modified_at": "2017-10-12T07:46:00.119144Z",
        "liquid_vote_count": 274,
        "liquid_value": 2.66423357664234,
        "liquid_sum": -92.0,
        "liquid_heat": 7.2636815920398,
        "liquid_consensus": 0.211678832116788,
        "liquid_skipped": 51,
        "liquid_minimum": 79,
        "liquid_low": 68,
        "liquid_medium": 38,
        "liquid_high": 44,
        "liquid_maximum": 45,
        "polarisation": 0.0646407961098201
    },
    "type": "Q",
    "object_id": 239,
    "active": true
}