createDetection
Mutation
Creates a new Detection.
Response
Returns Detection
Arguments
| Name | Type | Description |
|---|---|---|
detection | CreateDetectionInput! | Arguments to create a new detection. |
Example
mutation createDetection( $detection: CreateDetectionInput!) { createDetection( detection: $detection ) { id track { id dataSource { id name type labels } video { id startTime endTime cloudAvailable url thumbnailUrl displayName resolutionHeight resolutionWidth frameRate } modelId tag startTime endTime finished detections { id timestamp metadata createdAt updatedAt direction } properties { __typename } metadata zoneIntersections { id startTime endTime } geofenceIntersections { id startTime endTime } } timestamp frame { number } polygon { type coordinates crs { type properties } } position { type coordinates crs { type properties } } zones { id dataSource { id name type labels } name polygon { type coordinates } active createdAt updatedAt } geofences { id name labels site { id name timezone } pointOfInterest { id name metadata } bounds { height } active } metadata createdAt updatedAt direction }}{ "detection": { "trackId": "8576fbef-ab7f-8bd9-a21c-afe8b8ab05cb", "timestamp": "2025-01-01T00:00:00.000Z" }}{ "data": { "createDetection": { "id": "6dc9a1cf-6a1e-8bbd-ae52-f8c5902b1b53", "track": { "id": "58b9a930-5ec7-8c7d-8931-530b08e58c11", "dataSource": { "id": "d12da500-1c9d-8517-8064-a811ebcd3707", "name": "name-549e", "type": "FOLDER", "labels": [ "labels-516b" ] }, "video": { "id": "f8bac42b-3c2d-8091-bb6a-f5aeaa45f850", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z", "cloudAvailable": true, "url": "url-4cc8", "thumbnailUrl": "thumbnailUrl-d8b7", "displayName": "displayName-359f", "resolutionHeight": "resolutionHeight-066e", "resolutionWidth": "resolutionWidth-62f0", "frameRate": 453.14 }, "modelId": "f3b1dcb1-ac50-8fce-8509-3e824b58448b", "tag": "tag-70cb", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z", "finished": false, "detections": [ { "id": "6dc9a1cf-6a1e-8bbd-ae52-f8c5902b1b53", "timestamp": "2025-01-01T00:00:00.000Z", "metadata": {}, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "direction": 635.4 } ], "properties": { "__typename": "TrackProperties" }, "metadata": {}, "zoneIntersections": [ { "id": "3e8d4d0c-927e-8530-96d0-45d6d7e4010e", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z" } ], "geofenceIntersections": [ { "id": "d5c01ed1-9d21-87b5-90c4-9ac51d76470f", "startTime": "2025-01-01T00:00:00.000Z", "endTime": "2025-01-01T00:00:00.000Z" } ] }, "timestamp": "2025-01-01T00:00:00.000Z", "frame": { "number": 470 }, "polygon": { "type": "type-6547", "coordinates": [ [ [ 948.78 ] ] ], "crs": { "type": "type-8d98", "properties": {} } }, "position": { "type": "type-bd8d", "coordinates": [ 538.37 ], "crs": { "type": "type-8d98", "properties": {} } }, "zones": [ { "id": "9bc230c0-d8c6-87f8-89d2-790b14007ed2", "dataSource": { "id": "d12da500-1c9d-8517-8064-a811ebcd3707", "name": "name-549e", "type": "FOLDER", "labels": [ "labels-516b" ] }, "name": "name-bf20", "polygon": { "type": "type-6547", "coordinates": [ [ [ 948.78 ] ] ] }, "active": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z" } ], "geofences": [ { "id": "a9cd2c5d-0ca1-8c25-a90a-11ef7a2bdb24", "name": "name-163f", "labels": [ "labels-914c" ], "site": { "id": "f5e73b52-9179-8799-92de-27516934ea4d", "name": "name-ac75", "timezone": "timezone-4f92" }, "pointOfInterest": { "id": "9bf022b1-0c59-8550-8625-aca917feaaeb", "name": "name-9f71", "metadata": {} }, "bounds": { "height": 709.45 }, "active": false } ], "metadata": {}, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "direction": 635.4 } }}