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

Types of questions

  • QUESTION
  • TASK
  • PROJECT

Endpoints

Production environment
POST [under construction / not available]

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

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
Authentication
OAuth2
Authenticate
Click Try It! to start a request and see the response here!