Disapprove a task
Disapproving a task removes the training mark from a document, like Marked for training in the app.
POST https://api.send.ai/v2/{team_id}/project/{project_id}/task/{task_id}/disapprove
Scope: Tasks › Edit.
Request
The request has no body.
curl -X POST "https://api.send.ai/v2/tK3vQ9xLm2Rf8WbN0aZp/project/p3irz/task/task_Zp4Rk2Wn8Qx1Lc7Vb3M/disapprove" \
-H "Authorization: Bearer $SENDAI_API_KEY"
What disapproving does
The sample that Approve a task added is removed from the model in AI Studio, so the model no longer learns from this document. The task gets "approved": false. The document itself does not change.
Response
The answer holds the task, in the same shape as Get a task.
Errors
| Status | Error | Cause |
|---|---|---|
| 400 | Task cannot be disapproved while it is being processed | The document is still processing. |
| 400 | Task is already disapproved | The document is not marked. |
| 404 | Task not found | The task does not exist. |