---
title: "Patch Geofence"
method: PATCH
path: "/api/v1/geofences/{geofence_id}"
tags: ["geofences"]
---

# Patch Geofence

`PATCH /api/v1/geofences/{geofence_id}`

## Request

- Base URL: `https://api.brumby.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.brumby.com/api/v1/geofences/{geofence_id}`
- Auth: HTTP bearer

Name, activation, archival. Geometry is immutable — see the model.

## Path parameters

- `geofence_id` string, uuid, required

## Request body

- GeofenceUpdate: Name, activation, and archival only. There is deliberately no geometry or ceiling here: those are what a screening vouches for.
  - `name` string, nullable
  - `active` boolean, nullable
  - `archived` boolean, nullable

## Response `200`

Successful Response

- GeofenceResponse
  - `geofence_id` string, uuid, required
  - `device_id` string, nullable, required
  - `farm_id` string, nullable, required
  - `paddock_id` string, nullable, required
  - `source` string, required
  - `name` string, required
  - `geometry` object, required
  - `ceiling_ft_agl` integer, required
  - `active` boolean, required
  - `created_by` string, required
  - `archived_at` string, date-time, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/brumby/apis/brumby-platform-api.md) - [All operations](https://skmtc.dev/brumby/apis/brumby-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brumby/apis/brumby-platform-api/revisions/fe185e20813e?raw)
