Skip to content

createDetections

Mutation

Creates multiple new Detections.

Response

Returns [Detection]

Arguments

NameTypeDescription
detections[CreateDetectionInput!]!

Arguments to create a list of detections.

Example

mutation createDetections(
$detections: [CreateDetectionInput!]!
) {
createDetections(
detections: $detections
) {
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
}
}