This endpoint allows to record learning objects grouped as a quizz, assessment, survey or a questionnaire.

Types of questionaires

  • QUIZZ
  • ASSESSMENT
  • SURVEY
  • QUESTIONNAIRE

Endpoints

Production environment
POST [under construction / not available]

Sandbox
POST https://x3b54mm4ze.execute-api.us-east-1.amazonaws.com/test/questionnaire

Request structure

Header

  • Authorization : Access Token provided by the Request Token endpoint
  • Content-Type : application/json

Body
Json in Caliper API format containing questionnaire information.

Required Fields

  • All fields are required

Payload example

{
  "@context": "http://purl.imsglobal.org/ctx/caliper/v1p2",
  "id": "https://example.edu/surveys/100/questionnaires/30",
  "type": "Questionnaire",
  "items": [
    {
      "id": "https://example.edu/surveys/100/questionnaires/30/items/1",
      "type": "QuestionnaireItem"
    },
    {
      "id": "https://example.edu/surveys/100/questionnaires/30/items/2",
      "type": "QuestionnaireItem"
    }
  ],
  "dateCreated": "2018-08-01T06:00:00.000Z"
}

Responses

  • Code: 200
    • Status: OK
{
    "message": "Questionaire recorded successfuly"
}
  • Code: 400
    • Status: Bad Request
{
    "message": [
          "Field <fieldname> not informed"
    ]
}
  • Code: 401
    • Status: Questionaire type invalid
{
    "message": "Invalid questionaire type."
}
Language
Authentication
OAuth2
Authenticate
Click Try It! to start a request and see the response here!