Skip to main content

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​

StatusErrorCause
400Task cannot be disapproved while it is being processedThe document is still processing.
400Task is already disapprovedThe document is not marked.
404Task not foundThe task does not exist.