create_question_group

POST - (http://quescheetah.com/v1/groups)

Create many question.

These questions are grouped together.

The answers within each question are created also.

request

    {
        "group_name": "This Group name",
        "questions": {
            "1": {
                "question_title": "Your question title 1",
                "question_text": "Your question text 1",
                "start_dt": "", //optional
                "end_dt": "", //optional
                "is_editable": false, // optional
                "is_private": false // optional
            },
            "2": {
                "question_title": "Your question title 2",
                "question_text": "Your question text 2",
                "start_dt": "", //optional
                "end_dt": "", //optional
                "is_editable": false, // optional
                "is_private": false // optional
            }
            ...
        },
        "answers": {
            // Answers for the first question.
            "1": {
                // First answer of the first question.
                "1": {
                    "answer_text": "Answer 1"
                },
                "2": {
                    "answer_text": "Answer 2"
                },
                ...
            },
            // Answers for the second question.
            "2": {
                // First answer of the second question.
                "1": {
                    "answer_text": "Answer 1"
                },
                "2": {
                    "answer_text": "Answer 2"
                },
                ...
            },
        }
    }
Arguments Value Description
api_key string The user's own api_key.
group_name string representative title of all questions.
question_title string Title of this question.
question_text string Question text to ask.
start_dt long Activation time of this question. Default is current time.(YYYY-MM-DD HH:MM:ss)
end_dt long End time of this question. Default is 30 days from start date.(YYYY-MM-DD HH:MM:ss)
is_editable string Determine whether user can change the pre-answered answer.
is_private string Show question to added urls only.
answer_num integer Be criterion of descending order. Lower number will go first.
answer_text string Giving texts to choose.

return

    {
        "group_id": "This Group id",
        "group_name": "This Group name",
        "questions": {
            "1": {
                "question_id": "Your question id",
                "question_title": "Your question title 1",
                "question_text": "Your question text 1",
                "start_dt": "2016-02-09T04:57:15.322",
                "end_dt": "2016-02-09T04:57:15.322",
                "is_editable": { false },
                "is_private": { false }
            },
            "2": {
                "question_id": "Your question id",
                "question_title": "Your question title 2",
                "question_text": "Your question text 2",
                "start_dt": "2016-02-09T04:57:15.322",
                "end_dt": "2016-02-09T04:57:15.322",
                "is_editable": { false },
                "is_private": { false }
            }
            ...
        },
        "answers": {
            // Answers for the first question.
            "1": {
                // First answer of the first question.
                "1": {
                    "answer_text": "Answer 1"
                },
                "2": {
                    "answer_text": "Answer 2"
                },
                ...
            },
            // Answers for the second question.
            "2": {
                // First answer of the second question.
                "1": {
                    "answer_text": "Answer 1"
                },
                "2": {
                    "answer_text": "Answer 2"
                },
                ...
            },
        }
    }