Skip to content

updateGeofence

Mutation

Updates an existing Geofence.

Response

Returns Geofence

Arguments

NameTypeDescription
geofenceUpdateGeofenceInput!

Arguments to update an existing geofence.

Example

mutation updateGeofence(
$geofence: UpdateGeofenceInput!
) {
updateGeofence(
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
}
}