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

{
    "id": 141,
    "url": "https://api.represent.me/api/question_collections/141/",
    "user_url": "https://api.represent.me/api/users/20439/",
    "name": "Global Challenges Collaboration",
    "user": {
        "id": 20439,
        "username": "perlmutterlabs",
        "first_name": "Aaron",
        "last_name": "Perlmutter",
        "url": "https://api.represent.me/api/users/20439/",
        "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/73bd7fba-e73e-431b-a1e9-a489555f78ed.png",
        "age": 30,
        "bio": "https://perlmutterlabs.com/",
        "created_at": "2017-09-25T17:29:47.230065Z",
        "modified_at": "2019-04-15T15:52:28.948314Z",
        "is_deleted": false,
        "last_answer_time": "2017-10-04T21:51:18.923684Z",
        "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": 6,
        "count_votes": 43,
        "count_question_votes": 40,
        "count_friends": 0,
        "count_comment_votes": 0,
        "count_choice_votes": 3,
        "count_group_memberships": 2,
        "count_following_tags": 6,
        "count_comments": 0,
        "count_following_users": 4,
        "count_followers": 0,
        "karma": 0
    },
    "created_at": "2017-09-26T12:26:45Z",
    "modified_at": "2017-09-26T16:50:14.655255Z",
    "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=141",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/5a9c9346-bb8b-4482-9ba4-5bb9803ae155.png",
    "desc": "This is a survey for both members of the Global Challenges Collaboration and non-member supporters. Our public announcements will come from this Facebook page: https://www.facebook.com/GlobalChallengesCollaboration/ If you are a member of the Global Challenges Collaboration, you should also be a member of this Facebook group: https://www.facebook.com/groups/GlobalChallengesCollaboration/",
    "username": "perlmutterlabs",
    "question_count": 6,
    "item_count": 6,
    "end_text": "Thank you! Feel free to follow us on Facebook: https://www.facebook.com/GlobalChallengesCollaboration/",
    "expire_at": null,
    "geo": null,
    "geo_url": null,
    "geo_info": null,
    "answered": 0.0
}