Response set drafts

Also see Response set drafts.

Resource representations

{
  "kind": "response_set_draft",
  "id": integer,
  "quiz_id": integer,
  "created_at": datetime,
  "updated_at": datetime,
  "responses": [
    {
      "question_id": integer,
      "answer_ids": integer[]
    }
    .
    .
    .
  ]
}

Methods


POST /quizzes/:quiz_id/response_set_drafts
Create a response set draft.

Create a response set draft.

Params

Param Name Description
quiz_id
Required

Quiz id.


Value:

Must be a number.

response_set_draft
Required

Response set draft data.


Value:

Must be a Hash

response_set_draft[responses]
Required

Responses to questions


Value:

Must be an Array of nested elements

response_set_draft[responses][question_id]
Optional

Question id.


Value:

Must be Integer

response_set_draft[responses][answer_ids]
Optional

Answer id of answers selected by the user for a given question.


Value:

Must be an array of any type


GET /me/quizzes/:quiz_id/response_set_draft
Get a response set draft.

GET /response_set_drafts/:id
Get a response set draft.

GET /users/:user_id/quizzes/:quiz_id/response_set_draft
Get a response set draft.

Get a response set draft.

Params

Param Name Description
id
Optional

The id of the response set draft to get.


Value:

Must be String


PATCH /response_set_drafts/:id
Update a response set draft.

PUT /response_set_drafts/:id
Update a response set draft.

Update a response set draft.

Params

Param Name Description
response_set_draft
Required

Response set draft data.


Value:

Must be a Hash

response_set_draft[responses]
Required

Responses to questions


Value:

Must be an Array of nested elements

response_set_draft[responses][question_id]
Optional

Question id.


Value:

Must be Integer

response_set_draft[responses][answer_ids]
Optional

Answer id of answers selected by the user for a given question.


Value:

Must be an array of any type