> ## Documentation Index
> Fetch the complete documentation index at: https://docsv4.mile.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Geofence

> A geofence is an area drawn on the map, as a polygon or a circle

## What is Geofence?

A geofence is an area drawn on the map, as a polygon or a circle. Alerts and automations can react when a field user enters or leaves it, or stays inside longer than its dwell time.

## Geofence

<CardGroup cols={2}>
  <Card title="Read geofences" icon="list" href="/api-reference/monitoring/geofence/read-geofences">
    GET /geofence
  </Card>

  <Card title="Create geofence" icon="plus" href="/api-reference/monitoring/geofence/create-geofence">
    POST /geofence
  </Card>

  <Card title="Read geofence by ID" icon="list" href="/api-reference/monitoring/geofence/read-geofence-by-id">
    GET /geofence/{id}
  </Card>

  <Card title="Update geofence" icon="pen" href="/api-reference/monitoring/geofence/update-geofence">
    PUT /geofence/{id}
  </Card>

  <Card title="Update geofence status" icon="pen" href="/api-reference/monitoring/geofence/update-geofence-status">
    PATCH /geofence/{id}
  </Card>

  <Card title="Delete geofence" icon="trash" href="/api-reference/monitoring/geofence/delete-geofence">
    DELETE /geofence/{id}
  </Card>
</CardGroup>

## Geofence Group

Geofence groups organize geofences so you can filter and manage them together.

<CardGroup cols={2}>
  <Card title="Read geofence groups" icon="list" href="/api-reference/monitoring/geofence-group/read-geofence-groups">
    GET /geofence-group
  </Card>

  <Card title="Create geofence group" icon="plus" href="/api-reference/monitoring/geofence-group/create-geofence-group">
    POST /geofence-group
  </Card>

  <Card title="Update geofence group" icon="pen" href="/api-reference/monitoring/geofence-group/update-geofence-group">
    PUT /geofence-group/{id}
  </Card>

  <Card title="Delete geofence group" icon="trash" href="/api-reference/monitoring/geofence-group/delete-geofence-group">
    DELETE /geofence-group/{id}
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.