---
title: "Updates a vehicle geofence"
method: PUT
path: "/v1/resourceowner/vehiclegeofence/{vehicleGeofenceId}"
tags: ["ResourceOwnerVehicleGeofence"]
---

# Updates a vehicle geofence

`PUT /v1/resourceowner/vehiclegeofence/{vehicleGeofenceId}`

## Request

- Base URL: `https://api.automile.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.automile.com/v1/resourceowner/vehiclegeofence/{vehicleGeofenceId}`
- Auth: OAuth 2
  - Implicit: `https://api.automile.com/login/`

This will update the given vehicle geofence id with a new model.

## Path parameters

- `vehicleGeofenceId` integer, required

## Request body

- VehicleGeofenceEditModel
  - `ValidFrom` string, date-time
  - `ValidTo` string, date-time

## Response `200`

The vehiclegeofence was saved

## Other responses

- `400`: Bad request, could occur for a number of cases, see returned message
- `403`: Bad request, could occur for a number of cases, see returned message
- `500`: Internal server error

---

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