ClassifAI
API ReferenceFeedback

Submit ground truth feedback

Provide the correct label(s) for a previous classification to improve future accuracy. Feedback only affects the specific project_id associated with this detection. New labels are automatically added to that project's label set.

POST
/ground_truth/{detection_id}

Path Parameters

detection_idstring
ground_truth?string|null
ground_truth_labels?|null

Response Body

application/json

application/json

curl -X POST "https://loading/ground_truth/string" \  -H "Content-Type: application/json" \  -d '{    "ground_truth": "positive"  }'
{
  "detection_id": "det_a1b2c3d4e5f6g7h8",
  "message": "Ground truth feedback recorded successfully",
  "new_labels_added": [
    "neutral"
  ],
  "success": true,
  "updated_content_count": 2
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}