The ID of the task.
- Returns all relevant Aspects for a given task.
Computes feedback for an existing task.
Deletes a task by its ID.
Returns all relevant Aspe...
Taskbase Public API (0.9.0)
Download OpenAPI description
Languages
Servers
https://api.taskbase.com/
Bodyapplication/jsonrequired
The object containing metadata related to the learner interaction.
answerFreeformTextAnswer (object) or InTextFillInBlanksAnswer (object) or InTextChoicesAnswer (object) or MultipleChoiceAnswer (object) or MultipleResponsesAnswer (object) or SimulationAnswer (object)required
Base class for task answers. The concrete type depends on the task type.
Example: {"content":"The Battle of Waterloo was in 1815."}
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
- FREEFORM_TEXT
- IN_TEXT_FILL_IN_BLANKS
- IN_TEXT_CHOICES
- MULTIPLE_CHOICE
- MULTIPLE_RESPONSES
- SIMULATION
- https://api.taskbase.com/tasks/{taskId}/feedback/compute
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.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
- FreeformTextFeedback
- InTextChoicesFeedback
- InTextFillInBlanksFeedback
- MultipleChoiceFeedback
- MultipleResponsesFeedback
- SimulationFeedback
Response
application/json
{ "result": { "feedback": [ … ], "allAspects": [ … ], "answer": { … }, "points": { … }, "sampleSolutions": [ … ], "sampleSolution": { … } }, "metaData": { "taskAction": "CREATED", "tenantId": "string", "taskLink": "string" }, "taskId": "string", "taskType": "FreeformTextFeedback", "userId": "string" }
- https://api.taskbase.com/tasks/aspects/compute
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.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": { … } } ]
- https://api.taskbase.com/tasks/{taskId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api.taskbase.com/tasks/{taskId}?tenantId=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "message": "Task deleted successfully", "taskId": "task_waterloo", "tenantId": "tenant_123" }