Skip to main content
PATCH
/
video-detections
/
{id}
curl --request PATCH \
  --url https://api.indoralabs.com/video-detections/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "detections": [
    {
      "frame": 123,
      "label": "Face",
      "confidence": 0.92
    },
    {
      "frame": 140,
      "label": "LicensePlate",
      "confidence": 0.85
    }
  ]
}
'
{
  "detection": {
    "id": "d2f0cf30-b573-4797-97d4-aaab3ec2c5f1",
    "tenant_id": "743db90f-7e76-49f7-8d4e-5f42a16efc06",
    "file_id": "de13d372-a870-4eea-b975-9060d442f38c",
    "case_id": null,
    "doc_id": "de13d372-a870-4eea-b975-9060d442f38c",
    "detections": "[]",
    "created_at": "2025-09-07 13:48:43.927 -0500"
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string<uuid>
required

The unique ID of the video detection run to update.

Body

application/json

Fields to update on the specified video detection record. At least one property must be present.

detections
object[]

An optional array of detection objects, representing new or updated detection data. Each detection entry may include bounding boxes, timestamps, labels, or confidence scores. If provided, this array replaces the existing detections for the specified run.

caseId
string<uuid> | null

An optional Case ID to link this detection run to. Use null to clear any existing case association.

Response

Detection record successfully updated.

detection
object

Schema inferred from video_detections dataset.

Example:
{
"id": "d2f0cf30-b573-4797-97d4-aaab3ec2c5f1",
"tenant_id": "743db90f-7e76-49f7-8d4e-5f42a16efc06",
"file_id": "de13d372-a870-4eea-b975-9060d442f38c",
"case_id": null,
"doc_id": "de13d372-a870-4eea-b975-9060d442f38c",
"detections": "[]",
"created_at": "2025-09-07 13:48:43.927 -0500"
}