The object containing metadata related to the learner interaction.
Taskbase Public API (0.9.0)
https://developers.taskbase.com/
Defines the type of the task. Can be used by deserialization tools to instantiate the correct sub-type.
Freeform text task.
The task ID. This field should contain the task identifier used in the client's system.
Defines the type of the task. Can be used by deserialization tools to instantiate the correct sub-type.
- FreeformTextTask
- InTextChoicesTask
- InTextFillInBlanksTask
- MultipleChoiceTask
- MultipleResponsesTask
- SimulationTask
The task language.
The task title. If left blank, the taskDefinition.id will be used as the title during implicit task creation or update.
The problem statement of the task.
https://developers.taskbase.com/feedback/compute
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developers.taskbase.com/feedback/compute \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"userId": "student123",
"taskType": "FREEFORM_TEXT",
"taskDefinition": {
"id": "task_waterloo",
"problemStatement": "When was the Battle of Waterloo?",
"type": "FREEFORM_TEXT",
"sampleSolutions": [
{
"content": "The Battle of Waterloo was in 1815."
}
]
},
"answer": {
"content": "The Battle of Waterloo was in 1815."
}
}'Successful operation
The object containing metadata about the performed operation, along with helpful debugging information. Designed to simplify the integration process and does not include any production-related details that should be visible to the end user.
Defines the type of the task. Can be used by deserialization tools to instantiate the correct sub-type.
{ "result": { "allAspects": [ … ], "feedback": [ … ], "points": { … }, "answer": { … }, "sampleSolutions": [ … ], "sampleSolution": { … } }, "metaData": { "taskAction": "CREATED", "tenantId": "string", "taskLink": "string" }, "taskType": "FreeformTextFeedback", "taskId": "string", "userId": "string" }