Response sets

Also see Response sets.

Resource representations

{
  "kind": "response_set",
  "id": integer,
  "quiz_id": integer,
  "mifid_profile": integer,
  "risk_score": integer,
  "horizon_score": integer,
  "ppr_score": integer,
  "know_exp_score": integer,
  "appropriateness": boolean,
  "created_at": datetime,
  "updated_at": datetime,
  "responses": [
    {
      "question_id": integer,
      "answer_ids": integer[]
    }
    .
    .
    .
  ]
}

Methods


POST /quizzes/:quiz_id/response_sets
Create a response set.

Create a response set.

Params

Param Name Description
quiz_id
Required

Quiz id.


Value:

Must be a number.

response_set
Required

Response set data.


Value:

Must be a Hash

response_set[responses]
Required

Responses to questions


Value:

Must be an Array of nested elements

response_set[responses][question_id]
Optional

Question id.


Value:

Must be Integer

response_set[responses][answer_ids]
Optional

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


Value:

Must be an array of any type


PATCH /response_sets/:id
Update a response set.

PUT /response_sets/:id
Update a response set.

Update a response set.

Set the current user as the author of a response set.