> For the complete documentation index, see [llms.txt](https://docs.sendstackhq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sendstackhq.com/live-tracking-apis/geofences/update-geofence.md).

# Update Geofence

### Update Geofence

This endpoint updates a geofence

<mark style="color:green;">`PUT`</mark> `{baseUrl}/geofence/:geofenceId`

#### Request Body

| Field         | Type     | Required | Description          |
| ------------- | -------- | -------- | -------------------- |
| `name`        | `string` | ✅        | Name of geofence.    |
| `description` | `string` | ❌        | Geofence description |
| `area`        | `string` | ✅        | Geofence area        |

#### Sample Success Data

```
//Sample Request Body
{
    "name": "Test_Island_Geofence",
    "description": "Island coverage locations",
    "area": "POLYGON ((6.57955384860341 3.428432957806109, 6.4082822454249 3.44384423420928, 6.421780818038414 3.5975749615640495, 6.574921615748536 3.6404239396161984, 6.57955384860341 3.428432957806109))"
}
```

#### Sample Success Response

```
//Sample success response
{
    "status": true,
    "message": "Geofence successfully updated",
    "data": {}
}
```
