---
title: "Update an existing site"
method: PUT
path: "/v1/vehicles/{vehicleId}/sites/{name}"
tags: ["Site Management"]
---

# Update an existing site

`PUT /v1/vehicles/{vehicleId}/sites/{name}`

## Request

- Base URL: `https://api.polymathrobotics.dev`
- URL: `https://api.polymathrobotics.dev/v1/vehicles/{vehicleId}/sites/{name}`
- Auth: HTTP bearer

Updates an existing site with this name by replacing the entire site.

## Path parameters

- `vehicleId` string, required
- `name` string, required

## Request body

- WriteSiteRequest: Base for request bodies: unknown fields are rejected instead of silently dropped.
  - `boundary` SiteGeoPoint[], required: Boundary vertices of the site in WGS84 lat/lon.
    - `latitude` number, required: Latitude
    - `longitude` number, required: Longitude

## Response `200`

Successful Response

- WriteSiteResponse
  - `status` 'success', required: JSend status.
  - `message` string, required: Human-readable message, propagated from the ROS service.

## Other responses

- `400`: Site failed server-side validation
- `404`: Site to update was not found
- `422`: Request body failed validation
- `500`: Internal server error

## Changes

- **2026-09-09** `7bb062ddb622`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/polymathrobotics/apis/polymath-api/changes/v1/vehicles/:vehicleId/sites/:name/put.md)

---

[API](https://skmtc.dev/polymathrobotics/apis/polymath-api.md) - [All operations](https://skmtc.dev/polymathrobotics/apis/polymath-api/llms.txt) - [OpenAPI document](https://skmtc.dev/polymathrobotics/apis/polymath-api/revisions/3b5ff2f21338?raw)
