PUT test-answer

PUT Submits the answer on a question, as part of a predefined test.

Resource URL

https://www.drillster.com/api/2/test-answer/{reference}

or

https://www.drillster.com/api/2/test-answer/{reference}/{ticket}

Parameters

Field Type Description
reference
required
String

Unique identifier of the answered question. The reference must be copied from the question object received in the question response.

ticket
optional
String

An optional ticket, for use with anonymous tests.

answer
optional, repeatable
String

The value of the selected (multiple choice) or entered (open-ended) answer. For multiple choice questions, this value must be copied from the question.tell.terms.value in the question response. For open-ended questions, this value is the text that the user has entered.

If multiple answers must be submitted (for SET or SEQUENCE compositions), the answer parameter can be submitted multiple times.

If a PUT request has no body (i.e. the body is empty), it is still mandatory to include a Content-Length header (i.e. Content-Length: 0). Not all HTTP clients do this automatically. For more information, please see RFC 2616.

Response

A 2.0 AnswerResponse object. The response object's proficiency, evaluation and feedback properties will never be set though.

Example request

PUT https://www.drillster.com/api/2/test-answer/9J0D9O8NQ0CguRsOJXp1DA
answer=Copenhagen

Response

{
  "notifications" : [ ]
}