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

{
    "id": 13,
    "url": "https://api.represent.me/api/question_collection_items/13/",
    "parent": 1,
    "parent_url": "https://api.represent.me/api/question_collections/1/",
    "created_at": "2016-06-19T16:10:32.638927Z",
    "modified_at": "2017-03-08T10:32:36.062656Z",
    "start_at": null,
    "end_at": null,
    "order": 1,
    "content_object": {
        "id": 966,
        "url": "https://api.represent.me/api/questions/966/",
        "question": "Should the UK stay in the European Union?",
        "slug": "should-the-uk-stay-in-the-european-union",
        "my_vote": [],
        "user": {
            "id": 573,
            "username": "ben_walters",
            "first_name": "Ben",
            "last_name": "Walters",
            "url": "https://api.represent.me/api/users/573/",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_573.jpg",
            "age": 49,
            "follow": [],
            "bio": "",
            "last_answer_time": "2016-07-15T12:29:06.345278Z",
            "politician": null,
            "politician_info": null,
            "verification_score": 70,
            "count_questions": 1,
            "count_votes": 254,
            "count_question_votes": 250,
            "count_friends": 0,
            "count_comment_votes": 0,
            "count_choice_votes": 4,
            "count_group_memberships": 1,
            "count_following_tags": 1,
            "count_comments": 0,
            "count_following_users": 1,
            "count_followers": 1,
            "karma": 0
        },
        "tags": [
            {
                "id": 5195,
                "tag": {
                    "id": 769,
                    "text": "important",
                    "followers_count": 0,
                    "questions_count": 1679,
                    "votes_count": 719996
                },
                "created_at": "2016-11-21T19:45:27.349939Z",
                "modified_at": "2019-07-05T16:02:06.317213Z",
                "direct_vote_count": 106,
                "direct_value": 4.73584905660377,
                "direct_sum": 184.0,
                "direct_heat": 5.2020725388601,
                "direct_consensus": 0.753292986828053,
                "direct_skipped": 0,
                "direct_minimum": 7,
                "direct_low": 0,
                "direct_medium": 0,
                "direct_high": 0,
                "direct_maximum": 99
            },
            {
                "id": 3530,
                "tag": {
                    "id": 584,
                    "text": "principle",
                    "followers_count": 20165,
                    "questions_count": 86,
                    "votes_count": 97884
                },
                "created_at": "2016-04-04T21:05:39.065365Z",
                "modified_at": "2016-04-04T21:05:39.065717Z",
                "direct_vote_count": 0,
                "direct_value": 0.0,
                "direct_sum": 0.0,
                "direct_heat": 0.0,
                "direct_consensus": 0.5,
                "direct_skipped": 0,
                "direct_minimum": 0,
                "direct_low": 0,
                "direct_medium": 0,
                "direct_high": 0,
                "direct_maximum": 0
            },
            {
                "id": 3841,
                "tag": {
                    "id": 5,
                    "text": "europe",
                    "followers_count": 375,
                    "questions_count": 63,
                    "votes_count": 21132
                },
                "created_at": "2016-04-19T10:42:56.689022Z",
                "modified_at": "2016-04-19T10:42:56.722260Z",
                "direct_vote_count": 0,
                "direct_value": 0.0,
                "direct_sum": 0.0,
                "direct_heat": 0.0,
                "direct_consensus": 0.5,
                "direct_skipped": 0,
                "direct_minimum": 0,
                "direct_low": 0,
                "direct_medium": 0,
                "direct_high": 0,
                "direct_maximum": 0
            },
            {
                "id": 3859,
                "tag": {
                    "id": 606,
                    "text": "EUreferendum",
                    "followers_count": 49,
                    "questions_count": 81,
                    "votes_count": 31125
                },
                "created_at": "2016-04-24T11:07:51.175530Z",
                "modified_at": "2016-04-24T11:07:51.175877Z",
                "direct_vote_count": 0,
                "direct_value": 0.0,
                "direct_sum": 0.0,
                "direct_heat": 0.0,
                "direct_consensus": 0.5,
                "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": null,
        "topic_info": null,
        "group": null,
        "geo": null,
        "geo_info": null,
        "group_url": null,
        "geo_url": null,
        "links": [],
        "start_at": null,
        "end_at": null,
        "publish": true,
        "count_comments": 12,
        "count_comments_suggestion": 1,
        "count_comments_reason": 11,
        "count_comments_info": 0,
        "group_name": null,
        "direct_vote_count": 4024,
        "direct_value": 4.15134194831014,
        "direct_sum": 4633.0,
        "direct_heat": 109.540983606557,
        "direct_consensus": 0.514721128991459,
        "direct_skipped": 456,
        "direct_minimum": 391,
        "direct_low": 212,
        "direct_medium": 95,
        "direct_high": 1025,
        "direct_maximum": 2301,
        "created_at": "2015-05-20T04:43:55.785000Z",
        "modified_at": "2019-07-13T20:13:31.235113Z",
        "liquid_vote_count": 4024,
        "liquid_value": 4.15134194831014,
        "liquid_sum": 4633.0,
        "liquid_heat": 109.540983606557,
        "liquid_consensus": 0.67668986083499,
        "liquid_skipped": 456,
        "liquid_minimum": 391,
        "liquid_low": 212,
        "liquid_medium": 95,
        "liquid_high": 1025,
        "liquid_maximum": 2301,
        "polarisation": 0.22618276257018
    },
    "type": "Q",
    "object_id": 966,
    "active": true
}