---
title: "Update a farm"
method: PUT
path: "/services/fields/api/users/{leafUserId}/farms/{farmId}"
tags: ["Farms"]
---

# Update a farm

`PUT /services/fields/api/users/{leafUserId}/farms/{farmId}`

## Path parameters

- `leafUserId` string, required
- `farmId` string, required

## Request body

- object
  - `name` string
  - `growerId` string

## Response `200`

Farm updated

---

[API](https://skmtc.net/withleaf/apis/leaf-api.md) · [All operations](https://skmtc.net/withleaf/apis/leaf-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/withleaf/leaf-api/revisions/ee7a2a2053e2/schema)
