The ID of the task.
Taskbase Public API (0.9.0)
Download OpenAPI description
Languages
Servers
https://developers.taskbase.com/
Bodyapplication/jsonrequired
The object containing metadata related to the learner interaction.
Defines the type of the task. Can be used by deserialization tools to instantiate the correct sub-type.
Enum"FREEFORM_TEXT""IN_TEXT_FILL_IN_BLANKS""IN_TEXT_CHOICES""MULTIPLE_CHOICE""MULTIPLE_RESPONSES""SIMULATION"
Example: "FREEFORM_TEXT"
Discriminator
https://developers.taskbase.com/tasks/{taskId}/feedback/compute
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://developers.taskbase.com/tasks/{taskId}/feedback/compute' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"userId": "student123",
"taskType": "FREEFORM_TEXT",
"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.
Enum"FREEFORM_TEXT""IN_TEXT_FILL_IN_BLANKS""IN_TEXT_CHOICES""MULTIPLE_CHOICE""MULTIPLE_RESPONSES""SIMULATION"
Discriminator
Response
application/json
{ "result": { "allAspects": [ … ], "feedback": [ … ], "points": { … }, "answer": { … }, "sampleSolutions": [ … ], "sampleSolution": { … } }, "metaData": { "taskAction": "CREATED", "tenantId": "string", "taskLink": "string" }, "taskType": "FreeformTextFeedback", "taskId": "string", "userId": "string" }
https://developers.taskbase.com/tasks/aspects/compute
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developers.taskbase.com/tasks/aspects/compute \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"tenantId": "tenant_123",
"taskDefinition": {
"id": "task_waterloo",
"problemStatement": "When was the Battle of Waterloo?",
"type": "FREEFORM_TEXT",
"sampleSolutions": [
{
"content": "The Battle of Waterloo was in 1815."
}
]
}
}'Response
application/json
[ { "name": "string", "description": "string", "type": "CONCEPT", "aspectGroup": { … } } ]