Skip to main content
POST
Import Geofences
Creates or updates geofences in bulk, matched by externalId. Every row needs one, so sending the same rows again updates them instead of creating copies. Requires the geofences:write scope. Rows are checked one by one. Invalid rows are skipped and listed in errors; the valid rows are saved together. On update, fields a row leaves out keep their stored value. New rows need the fields Create Geofence requires. Rows past the 10,000 per workspace limit are skipped with an error.

Request

object[]
required
Up to 1,000 rows with the create fields, each with an externalId.

Response

integer
Geofences created.
integer
Geofences updated.
object[]
Skipped rows, each with index (position in geofences), externalId and error.

Errors

A row with an invalid field does not fail the request: the response is 200 with the row in errors, and the other rows are saved. Check errors even when the request succeeds.