This endpoint allows to record one learning object in a form of a single question, task or project.

Types of questions

  • QUESTION
  • TASK
  • PROJECT

Request structure

Header

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

Body
Json in Caliper API format containing question information.

Required Fields

  • All fields are required

Payload example

{
  "@context": "http://purl.imsglobal.org/ctx/caliper/v1p2",
  "id": "https://example.edu/question/1",
  "type": "Question",
  "questionPosed": "How would you rate this?"
}

Responses

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