Skip to content

createGeofence

Mutation

Creates a new Geofence.

Response

Returns Geofence

Arguments

NameTypeDescription
geofenceCreateGeofenceInput!

Arguments to create a new geofence.

Example

mutation createGeofence(
$geofence: CreateGeofenceInput!
) {
createGeofence(
geofence: $geofence
) {
id
name
labels
site {
id
name
timezone
position {
type
coordinates
}
polygon {
type
coordinates
}
devices {
id
uuid
externalId
name
enabled
address
frameRate
transcoderId
lastHeartbeat
}
pointsOfInterest {
id
name
metadata
}
geofences {
id
name
labels
active
}
facilities {
id
name
metadata
}
}
pointOfInterest {
id
site {
id
name
timezone
}
name
position {
type
coordinates
}
devices {
id
uuid
externalId
name
enabled
address
frameRate
transcoderId
lastHeartbeat
}
geofences {
id
name
labels
active
}
metadata
}
bounds {
polygon {
type
coordinates
}
height
}
active
}
}