The ID of the task.
- Creates or updates a task
Taskbase Public API (0.9.0)
The object containing metadata related to the learner interaction.
Base class for task answers. The concrete type depends on the task type.
Defines the type of the task. Can be used by deserialization tools to instantiate the correct sub-type.
- 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.
- FreeformTextFeedback
- InTextChoicesFeedback
- InTextFillInBlanksFeedback
- MultipleChoiceFeedback
- MultipleResponsesFeedback
- SimulationFeedback
{ "result": { "allAspects": [ … ], "answer": { … }, "points": { … }, "feedback": [ … ], "sampleSolutions": [ … ], "sampleSolution": { … } }, "metaData": { "taskAction": "CREATED", "tenantId": "string", "taskLink": "string" }, "taskId": "string", "taskType": "FreeformTextFeedback", "userId": "string" }
Request
Creates a new task if the task.id has not been seen before, or updates an existing task if the task.id already exists. The task.id should be the identifier from your system.
This endpoint is designed for workflows where tasks are created separately from answer submission. If you need to submit an answer and get feedback, use the /tasks/{taskId}/feedback/compute endpoint instead.
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
- InTextFillInBlanksTask
- InTextChoicesTask
- 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://api.taskbase.com/tenants/{tenantId}/tasks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.taskbase.com/tenants/{tenantId}/tasks' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": "string",
"type": "FreeformTextTask",
"problemStatement": "When was the Battle of Waterloo?"
}'{ "taskId": "task_waterloo", "tenantId": "tenant_123", "action": "CREATED", "taskLink": "https://app.taskbase.com/tasks/task_waterloo" }
- https://api.taskbase.com/tenants/{tenantId}/tasks/{taskId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api.taskbase.com/tenants/{tenantId}/tasks/{taskId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "message": "Task deleted successfully", "taskId": "task_waterloo", "tenantId": "tenant_123" }